diff options
author | Marshall Clow <mclow@qualcomm.com> | 2013-03-18 17:45:34 +0000 |
---|---|---|
committer | Marshall Clow <mclow@qualcomm.com> | 2013-03-18 17:45:34 +0000 |
commit | b56e8587aff9d8766a673f51b2d9c525e1535d84 (patch) | |
tree | c4c634ec98a9e66df29d6d01254590677ba20b85 /libcxx/src/chrono.cpp | |
parent | e8f1cf478bc7bd8d6e7088a6e4c97d32ae6002c6 (diff) | |
download | bcm5719-llvm-b56e8587aff9d8766a673f51b2d9c525e1535d84.tar.gz bcm5719-llvm-b56e8587aff9d8766a673f51b2d9c525e1535d84.zip |
Removed raw references to __APPLE__; now just check to see if it is defined.
llvm-svn: 177297
Diffstat (limited to 'libcxx/src/chrono.cpp')
-rw-r--r-- | libcxx/src/chrono.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/src/chrono.cpp b/libcxx/src/chrono.cpp index 1ce2e2807a3..15a6f466a77 100644 --- a/libcxx/src/chrono.cpp +++ b/libcxx/src/chrono.cpp @@ -9,7 +9,7 @@ #include "chrono" #include <sys/time.h> //for gettimeofday and timeval -#if __APPLE__ +#ifdef __APPLE__ #include <mach/mach_time.h> // mach_absolute_time, mach_timebase_info_data_t #else /* !__APPLE__ */ #include <cerrno> // errno @@ -50,7 +50,7 @@ system_clock::from_time_t(time_t t) _NOEXCEPT const bool steady_clock::is_steady; -#if __APPLE__ +#ifdef __APPLE__ // mach_absolute_time() * MachInfo.numer / MachInfo.denom is the number of // nanoseconds since the computer booted up. MachInfo.numer and MachInfo.denom // are run time constants supplied by the OS. This clock has no relationship |