summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-08-25 07:09:30 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-08-25 07:09:30 +0200
commit1178c4f680742502eb5e6c46a60e183c2506da89 (patch)
treef4e54bc48af04decab823afdce4ec3984fa8f6ab
parent32687e078a50315baa88a9854efea5bb1ca65532 (diff)
downloadcython-1178c4f680742502eb5e6c46a60e183c2506da89.tar.gz
Avoid depending on some C macros in the buildenv.pyx test that might not be defined (specifically on MSVC, as usual).
-rw-r--r--tests/compile/buildenv.pyx6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/compile/buildenv.pyx b/tests/compile/buildenv.pyx
index 703ce4228..d38efba1a 100644
--- a/tests/compile/buildenv.pyx
+++ b/tests/compile/buildenv.pyx
@@ -22,6 +22,12 @@ cdef extern from *:
#ifndef PyLong_MASK
#define PyLong_MASK 0
#endif
+ #ifndef SIZEOF_UINTPTR_T
+ #define SIZEOF_UINTPTR_T 0
+ #endif
+ #ifndef SIZEOF_OFF_T
+ #define SIZEOF_OFF_T 0
+ #endif
"""
# Python runtime
cdef long PY_VERSION_HEX