From 79f67e722a2ef1590b4eda32c010acfc258e5df6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 26 Jan 2023 19:32:00 +0900 Subject: [PATCH] Minor improvement to python version detection condition. Signed-off-by: Michele Calgaro --- src/pythonize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pythonize.cpp b/src/pythonize.cpp index 9d41f69..2315d75 100644 --- a/src/pythonize.cpp +++ b/src/pythonize.cpp @@ -44,7 +44,7 @@ Pythonize::Pythonize () { Py_Initialize(); -#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION <= 6 +#if PY_VERSION_HEX < 0x03070000 // initialize thread support PyEval_InitThreads(); #endif