Commit 6ae1c55d authored by scoder's avatar scoder

Merge pull request #416 from mic-e/fixabscpp11

Fixed __Pyx_sst_abs with C++11
parents cc954ad9 78800e0e
......@@ -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