Commit c8e50696 by Matthias Möller Committed by Wenzel Jakob

fix msvc warning when Python.h was included before pybind11.h (#683)

* fix warning when Python.h was included before pybind11.h

* remove trailing whitespace
parent baec23c2
...@@ -58,7 +58,9 @@ ...@@ -58,7 +58,9 @@
/// Include Python header, disable linking to pythonX_d.lib on Windows in debug mode /// Include Python header, disable linking to pythonX_d.lib on Windows in debug mode
#if defined(_MSC_VER) #if defined(_MSC_VER)
# define HAVE_ROUND # if (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 4)
# define HAVE_ROUND 1
# endif
# pragma warning(push) # pragma warning(push)
# pragma warning(disable: 4510 4610 4512 4005) # pragma warning(disable: 4510 4610 4512 4005)
# if defined(_DEBUG) # if defined(_DEBUG)
......
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