Переглянути джерело

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 роки тому
батько
коміт
f9fd21c96f
1 змінених файлів з 2 додано та 0 видалено
  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