adonthell-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[adonthell-commits] master 9e21c11 1/2: FIXED compilation with Python 3.


From: Kai Sterker
Subject: [adonthell-commits] master 9e21c11 1/2: FIXED compilation with Python 3.10 and up
Date: Sun, 4 Sep 2022 09:01:24 -0400 (EDT)

branch: master
commit 9e21c112d08cdee152035dbec40fdb71cabf836a
Author: Kai Sterker <kai.sterker@gmail.com>
Commit: Kai Sterker <kai.sterker@gmail.com>

    FIXED compilation with Python 3.10 and up
---
 src/python_class.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/python_class.h b/src/python_class.h
index b4552bc..d90cdf0 100644
--- a/src/python_class.h
+++ b/src/python_class.h
@@ -36,7 +36,9 @@
 #include "Python.h"
 #include "compile.h"
 #include "eval.h"
+#if PY_MAJOR_VERSION <= 3 && PY_MINOR_VERSION < 10
 #include "node.h"
+#endif
 #include "fileops.h"
 
 #ifndef SWIG



reply via email to

[Prev in Thread] Current Thread [Next in Thread]