Skip to content

Commit 85b094c

Browse files
authored
Update libcxx/include/math.h
1 parent e7be921 commit 85b094c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libcxx/include/math.h

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

300-
# if defined(__APPLE__)
300+
// This is required to define functions like lgamma_r on Apple platforms.
301+
// These functions are not required by the Standard but our implementation
302+
// uses them.
303+
# if defined(__APPLE__) && !defined(_REENTRANT)
301304
# define _REENTRANT
302305
# endif
303306

0 commit comments

Comments
 (0)