aboutsummaryrefslogtreecommitdiffstats
path: root/src/chrono.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-04-27 17:27:12 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-04-27 17:27:12 +0000
commit527d9fcb66574fdd657c3235c0d7cba7c5439d5c (patch)
treef4dbdda47a8f2e8eb8196e6a33ed834e8400837e /src/chrono.cpp
parentc7f918d0681828afdbddfdcc354b6f3dfc2a7b68 (diff)
downloadsrc-527d9fcb66574fdd657c3235c0d7cba7c5439d5c.tar.gz
src-527d9fcb66574fdd657c3235c0d7cba7c5439d5c.zip
Vendor import of libc++ trunk r180598.vendor/libc++/r180598
Notes
Notes: svn path=/vendor/libc++/dist/; revision=249989 svn path=/vendor/libc++/r180598/; revision=249990; tag=vendor/libc++/r180598
Diffstat (limited to 'src/chrono.cpp')
-rw-r--r--src/chrono.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chrono.cpp b/src/chrono.cpp
index 1ce2e2807a37..15a6f466a77d 100644
--- a/src/chrono.cpp
+++ b/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