[libcxx-commits] [PATCH] D104372: [libcxx] Fix a case of -Wundef warnings regarding _POSIX_TIMERS
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jun 17 03:02:53 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGd7550e5d105f: [libcxx] Fix a case of -Wundef warnings regarding _POSIX_TIMERS (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104372/new/
https://reviews.llvm.org/D104372
Files:
libcxx/src/chrono.cpp
Index: libcxx/src/chrono.cpp
===================================================================
--- libcxx/src/chrono.cpp
+++ libcxx/src/chrono.cpp
@@ -31,7 +31,7 @@
# include <sys/time.h> // for gettimeofday and timeval
#endif
-#if !defined(__APPLE__) && _POSIX_TIMERS > 0
+#if !defined(__APPLE__) && defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0
# define _LIBCPP_USE_CLOCK_GETTIME
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104372.352659.patch
Type: text/x-patch
Size: 397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210617/29b7e54c/attachment.bin>
More information about the libcxx-commits
mailing list