EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.

LGTM once the `_POSIX_THREADS` comment is addressed.


================
Comment at: src/config.h:46
@@ +45,3 @@
+    defined(__linux__) || \
+    defined(__APPLE__) || \
+    defined(__CloudABI__) || \
----------------
I think what @compnerd means is that `_POSIX_THREADS` can be used to detect if 
the current platform supports/provides `pthreads.h`. So instead of enumerating 
the OS's that support them manually we can just replace that check with 
`defined(_POSIX_THREADS)` after including `unistd.h`.






https://reviews.llvm.org/D24864



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to