ifdef WIN32 -> _WIN32

This commit is contained in:
Wenzel Jakob 2015-11-28 14:20:38 +01:00
parent 6e213c9ca0
commit e1b113b0d9

View File

@ -272,7 +272,7 @@ public:
PYBIND11_OBJECT_DEFAULT(int_, object, PyLong_Check)
int_(int value) : object(PyLong_FromLong((long) value), false) { }
int_(size_t value) : object(PyLong_FromSize_t(value), false) { }
#if !(defined(WIN32) || defined(__i386__)) || defined(_WIN64)
#if !(defined(_WIN32) || defined(__i386__)) || defined(_WIN64)
int_(ssize_t value) : object(PyLong_FromSsize_t(value), false) { }
#endif
operator int() const { return (int) PyLong_AsLong(m_ptr); }