浏览代码

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