Skip to content

Commit be50a7e

Browse files
author
Patric Schmitz
committed
add portability #defines PyLong_FromLong, PyUnicode_FromString
1 parent 0e39f8f commit be50a7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

matplotlibcpp.h

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy