Browse Source

Don't define __ISO_C_VISIBLE unconditionally.

__ISO_C_VISIBLE is already defined on FreeBSD. By default, it has a
value of 2011. This causes a lot of compiler warnings.
Ed Schouten 10 years ago
parent
commit
f9fd21c96f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/openlibm.h

+ 2 - 0
src/openlibm.h

@@ -57,7 +57,9 @@ extern const union __nan_un {
 //VBS begin
 #define __MATH_BUILTIN_CONSTANTS
 #define	__MATH_BUILTIN_RELOPS
+#ifndef __ISO_C_VISIBLE
 #define __ISO_C_VISIBLE 1999
+#endif
 //VBS end
 
 #ifdef __MATH_BUILTIN_CONSTANTS