Browse Source

Add portability #defines PyLong_FromLong, PyUnicode_FromString

Patric Schmitz 6 năm trước cách đây
mục cha
commit
d42a969cc1
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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