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
This commit is contained in:
Matthias Möller 2017-02-18 14:29:54 +01:00 committed by Wenzel Jakob
parent baec23c2d4
commit c8e506961c
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,9 @@
/// Include Python header, disable linking to pythonX_d.lib on Windows in debug mode
#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(disable: 4510 4610 4512 4005)
# if defined(_DEBUG)