Skip to content

Commit f9fd21c

Browse files
committed
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.
1 parent f835657 commit f9fd21c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/openlibm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ extern const union __nan_un {
5757
//VBS begin
5858
#define __MATH_BUILTIN_CONSTANTS
5959
#define __MATH_BUILTIN_RELOPS
60+
#ifndef __ISO_C_VISIBLE
6061
#define __ISO_C_VISIBLE 1999
62+
#endif
6163
//VBS end
6264

6365
#ifdef __MATH_BUILTIN_CONSTANTS

0 commit comments

Comments
 (0)