[test-suite] r252635 - [minisat] Include the fpu_control.h header only when the __GLIBC__ macro is defined.
Vasileios Kalintiris via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 10 10:56:24 PST 2015
Author: vkalintiris
Date: Tue Nov 10 12:56:23 2015
New Revision: 252635
URL: http://llvm.org/viewvc/llvm-project?rev=252635&view=rev
Log:
[minisat] Include the fpu_control.h header only when the __GLIBC__ macro is defined.
Reviewers: dsanders
Subscribers: dsanders, llvm-commits
Differential Revision: http://reviews.llvm.org/D13935
Modified:
test-suite/trunk/MultiSource/Applications/minisat/Main.cpp
Modified: test-suite/trunk/MultiSource/Applications/minisat/Main.cpp
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/minisat/Main.cpp?rev=252635&r1=252634&r2=252635&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/minisat/Main.cpp (original)
+++ test-suite/trunk/MultiSource/Applications/minisat/Main.cpp Tue Nov 10 12:56:23 2015
@@ -76,7 +76,7 @@ static inline uint64_t memUsed(void) {
static inline uint64_t memUsed() { return 0; }
#endif
-#if defined(__linux__)
+#if defined(__GLIBC__) && defined(__linux__)
#include <fpu_control.h>
#endif
More information about the llvm-commits
mailing list