[PATCH] D41241: [Solaris] Only define _REENTRANT if -pthread
Rainer Orth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 15 04:39:46 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rC332343: [Solaris] Only define _REENTRANT if -pthread (authored by ro, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D41241
Files:
lib/Basic/Targets/OSTargets.h
Index: lib/Basic/Targets/OSTargets.h
===================================================================
--- lib/Basic/Targets/OSTargets.h
+++ lib/Basic/Targets/OSTargets.h
@@ -551,7 +551,8 @@
Builder.defineMacro("_LARGEFILE_SOURCE");
Builder.defineMacro("_LARGEFILE64_SOURCE");
Builder.defineMacro("__EXTENSIONS__");
- Builder.defineMacro("_REENTRANT");
+ if (Opts.POSIXThreads)
+ Builder.defineMacro("_REENTRANT");
if (this->HasFloat128)
Builder.defineMacro("__FLOAT128__");
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41241.146786.patch
Type: text/x-patch
Size: 520 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180515/f2c47760/attachment.bin>
More information about the cfe-commits
mailing list