Commit 8d04f57d authored by Ben Boeckel's avatar Ben Boeckel

python: silence warnings about round redefinition

New MSVC has it while Python binaries are built with MSVC 2008.
parent 3bb4d633
...@@ -72,8 +72,16 @@ they are system headers. Do NOT add any #undef lines here. */ ...@@ -72,8 +72,16 @@ they are system headers. Do NOT add any #undef lines here. */
# pragma warning (push, 1) # pragma warning (push, 1)
#endif #endif
#if defined(_MSC_VER) && _MSC_VER >= 1800
#define HAVE_ROUND
#endif
#include <Python.h> #include <Python.h>
#if defined(_MSC_VER) && _MSC_VER >= 1800
#undef HAVE_ROUND
#endif
#if defined(_MSC_VER) #if defined(_MSC_VER)
# pragma warning (pop) # pragma warning (pop)
#endif #endif
......
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