diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-07 00:46:51 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 00:46:51 (GMT) |
commit | b556f53785cb9ad8cc088ad8c10efee91fe3da58 (patch) | |
tree | 7f2cfe2176fcaa50254a755801f3506d5f3aa569 /Modules/audioop.c | |
parent | 097f74a5a37e2a8a26d529cede456ede7011b66f (diff) | |
download | cpython-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 'Modules/audioop.c')
-rw-r--r-- | Modules/audioop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c index 2a5d805..32237ca 100644 --- a/Modules/audioop.c +++ b/Modules/audioop.c @@ -297,7 +297,7 @@ static const int stepsizeTable[89] = { #define GETINT16(cp, i) GETINTX(int16_t, (cp), (i)) #define GETINT32(cp, i) GETINTX(int32_t, (cp), (i)) -#if WORDS_BIGENDIAN +#ifdef WORDS_BIGENDIAN #define GETINT24(cp, i) ( \ ((unsigned char *)(cp) + (i))[2] + \ (((unsigned char *)(cp) + (i))[1] << 8) + \ @@ -314,7 +314,7 @@ static const int stepsizeTable[89] = { #define SETINT16(cp, i, val) SETINTX(int16_t, (cp), (i), (val)) #define SETINT32(cp, i, val) SETINTX(int32_t, (cp), (i), (val)) -#if WORDS_BIGENDIAN +#ifdef WORDS_BIGENDIAN #define SETINT24(cp, i, val) do { \ ((unsigned char *)(cp) + (i))[2] = (int)(val); \ ((unsigned char *)(cp) + (i))[1] = (int)(val) >> 8; \ |