Преглед изворни кода

Add portability #defines PyLong_FromLong, PyUnicode_FromString

Patric Schmitz пре 6 година
родитељ
комит
d42a969cc1
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      matplotlibcpp.h

+ 2 - 0
matplotlibcpp.h

@@ -18,6 +18,8 @@
 
 #if PY_MAJOR_VERSION >= 3
 #  define PyString_FromString PyUnicode_FromString
+#  define PyInt_FromLong PyLong_FromLong
+#  define PyString_FromString PyUnicode_FromString
 #endif