Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d42a969

Browse files
Patric SchmitzBenno Evers
Patric Schmitz
authored and
Benno Evers
committed
Add portability #defines PyLong_FromLong, PyUnicode_FromString
1 parent d89878b commit d42a969

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

matplotlibcpp.h

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
#if PY_MAJOR_VERSION >= 3
2020
# define PyString_FromString PyUnicode_FromString
21+
# define PyInt_FromLong PyLong_FromLong
22+
# define PyString_FromString PyUnicode_FromString
2123
#endif
2224

2325

0 commit comments

Comments
 (0)