Commit 78800e0e authored by Michael Ensslin's avatar Michael Ensslin

Fixed __Pyx_sst_abs with C++11

Some compilers appear to require you to explicitly `#include <cstdlib>` before
providing `std::abs`.
parent cc954ad9
......@@ -18,6 +18,7 @@
// fast and unsafe abs(Py_ssize_t) that ignores the overflow for (-PY_SSIZE_T_MAX-1)
#if defined (__cplusplus) && __cplusplus >= 201103L
#include <cstdlib>
#define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
#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