Skip to content

Commit 86721e5

Browse files
committed
Using PY_VERSION_HEX to guard #error "PYTHON 2 IS NO LONGER SUPPORTED.
1 parent 0323e36 commit 86721e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/detail/common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213

214214

215215
#include <Python.h>
216-
#if PY_MAJOR_VERSION < 3
216+
#if PY_VERSION_HEX < 0x03000000
217217
#error "PYTHON 2 IS NO LONGER SUPPORTED. pybind11 v2.9.1 was the last to support Python 2."
218218
#endif
219219
#include <frameobject.h>

0 commit comments

Comments
 (0)