[PATCH] D146251: [test-suite] Fix FreeBSD and OpenBSD builds
Dimitry Andric via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 18 16:52:30 PDT 2023
dim updated this revision to Diff 506337.
dim added a comment.
Simplify.
Repository:
rT test-suite
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146251/new/
https://reviews.llvm.org/D146251
Files:
SingleSource/Benchmarks/Misc/mandel.c
Index: SingleSource/Benchmarks/Misc/mandel.c
===================================================================
--- SingleSource/Benchmarks/Misc/mandel.c
+++ SingleSource/Benchmarks/Misc/mandel.c
@@ -11,9 +11,9 @@
#define I 1.0iF
-#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__MINGW32__)
+#if defined(__MINGW32__)
#include <complex.h>
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <math.h>
#else
#include <tgmath.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146251.506337.patch
Type: text/x-patch
Size: 505 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230318/7b9875bd/attachment.bin>
More information about the llvm-commits
mailing list