Skip to content

Commit e7be921

Browse files
committed
Define _REENTRANT prior to including math.h on macOS
1 parent ba53d6b commit e7be921

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libcxx/include/math.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ long double truncl(long double x);
297297
# pragma GCC system_header
298298
# endif
299299

300+
# if defined(__APPLE__)
301+
# define _REENTRANT
302+
# endif
303+
300304
# if __has_include_next(<math.h>)
301305
# include_next <math.h>
302306
# endif

0 commit comments

Comments
 (0)