File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111#define PY3K 0
1212#endif
1313
14- #if (PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION >=3)
15- #define PY33 1
16- #else
17- #define PY33 0
18- #endif
19-
20- /* Must define Py_TYPE for Python 2.5 or older */
21- #ifndef Py_TYPE
22- # define Py_TYPE (o ) ((o)->ob_type)
23- #endif
24-
2514/* Proper way to check for the OS X version we are compiling for, from
2615 http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development */
2716#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
@@ -1896,7 +1885,7 @@ -(void)save_figure:(id)sender
18961885 unsigned int n = [filename length ];
18971886 unichar * buffer = malloc (n*sizeof (unichar ));
18981887 [filename getCharacters: buffer];
1899- #if PY33
1888+ #if PY3K
19001889 PyObject* string = PyUnicode_FromKindAndData (PyUnicode_2BYTE_KIND, buffer, n);
19011890#else
19021891 PyObject* string = PyUnicode_FromUnicode (buffer, n);
You can’t perform that action at this time.
0 commit comments