mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-16 13:47:53 +00:00
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:
parent
baec23c2d4
commit
c8e506961c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user