Commit a1b6dae0 authored by Yuriy Chernyshov's avatar Yuriy Chernyshov Committed by GitHub

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 518cbac8
...@@ -1285,7 +1285,9 @@ static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObj ...@@ -1285,7 +1285,9 @@ static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObj
/////////////// MathInitCode /////////////// /////////////// MathInitCode ///////////////
#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS) #if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
#define _USE_MATH_DEFINES #if !defined(_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