File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 11
11
#define PY3K 0
12
12
#endif
13
13
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
-
25
14
/* Proper way to check for the OS X version we are compiling for, from
26
15
http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development */
27
16
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1050
@@ -1896,7 +1885,7 @@ -(void)save_figure:(id)sender
1896
1885
unsigned int n = [filename length ];
1897
1886
unichar * buffer = malloc (n*sizeof (unichar ));
1898
1887
[filename getCharacters: buffer];
1899
- #if PY33
1888
+ #if PY3K
1900
1889
PyObject* string = PyUnicode_FromKindAndData (PyUnicode_2BYTE_KIND, buffer, n);
1901
1890
#else
1902
1891
PyObject* string = PyUnicode_FromUnicode (buffer, n);
You can’t perform that action at this time.
0 commit comments