summaryrefslogtreecommitdiffstats
path: root/Python/pytime.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-02-07 00:46:51 (GMT)
committerGitHub <noreply@github.com>2022-02-07 00:46:51 (GMT)
commitb556f53785cb9ad8cc088ad8c10efee91fe3da58 (patch)
tree7f2cfe2176fcaa50254a755801f3506d5f3aa569 /Python/pytime.c
parent097f74a5a37e2a8a26d529cede456ede7011b66f (diff)
downloadcpython-b556f53785cb9ad8cc088ad8c10efee91fe3da58.zip
cpython-b556f53785cb9ad8cc088ad8c10efee91fe3da58.tar.gz
cpython-b556f53785cb9ad8cc088ad8c10efee91fe3da58.tar.bz2
bpo-46670: Test if a macro is defined, not its value (GH-31178)
* audioop.c: #ifdef WORDS_BIGENDIAN * ctypes.h: #ifdef USING_MALLOC_CLOSURE_DOT_C * _ctypes/malloc_closure.c: #ifdef HAVE_FFI_CLOSURE_ALLOC and #ifdef USING_APPLE_OS_LIBFFI * pytime.c: #ifdef __APPLE__ * unicodeobject.c: #ifdef HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION
Diffstat (limited to 'Python/pytime.c')
-rw-r--r--Python/pytime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pytime.c b/Python/pytime.c
index 9653662..aff20c6 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -962,7 +962,7 @@ _PyTime_GetSystemClockWithInfo(_PyTime_t *t, _Py_clock_info_t *info)
}
-#if __APPLE__
+#ifdef __APPLE__
static int
py_mach_timebase_info(_PyTime_t *pnumer, _PyTime_t *pdenom, int raise)
{