Commit 65fcccc1 authored by David Vierra's avatar David Vierra

Actually check if __cplusplus is defined.

parent 2e1f7fdf
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
v == (type)PY_SSIZE_T_MAX))) ) v == (type)PY_SSIZE_T_MAX))) )
// fast and unsafe abs(Py_ssize_t) that ignores the overflow for (-PY_SSIZE_T_MAX-1) // fast and unsafe abs(Py_ssize_t) that ignores the overflow for (-PY_SSIZE_T_MAX-1)
#if __cplusplus >= 201103L #if defined (__cplusplus) && __cplusplus >= 201103L
#define __Pyx_sst_abs(value) std::abs(value) #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T #elif SIZEOF_INT >= SIZEOF_SIZE_T
#define __Pyx_sst_abs(value) abs(value) #define __Pyx_sst_abs(value) abs(value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment