mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
[libcxx] Fix a case of -Wundef warnings regarding _POSIX_TIMERS
Differential Revision: https://reviews.llvm.org/D104372
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user