Commit ef14c148 authored by Yuriy Chernyshov's avatar Yuriy Chernyshov Committed by Stefan Behnel

Do not redefine _USE_MATH_DEFINES in generated code (GH-4690)

Unconditionally adding `/D_USE_MATH_DEFINES` via cmdline triggers `-Wmacro-redefined` in cython-generated code.
parent 2e38e238
...@@ -963,8 +963,10 @@ static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObj ...@@ -963,8 +963,10 @@ static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObj
/////////////// MathInitCode /////////////// /////////////// MathInitCode ///////////////
#if defined(WIN32) || defined(MS_WINDOWS) #if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
#if !defined(_USE_MATH_DEFINES)
#define _USE_MATH_DEFINES #define _USE_MATH_DEFINES
#endif
#endif #endif
#include <math.h> #include <math.h>
......
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