File tree Expand file tree Collapse file tree 5 files changed +7
-11
lines changed Expand file tree Collapse file tree 5 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 55
55
pass
56
56
*/
57
57
58
+ #define Py_LIMITED_API 0x030a0000
59
+
58
60
#include "Python.h"
59
61
60
62
// Module state
Original file line number Diff line number Diff line change 5
5
* See the xxlimited module for an extension module template.
6
6
*/
7
7
8
- /* Xxo objects */
8
+ #define Py_LIMITED_API 0x03050000
9
9
10
10
#include "Python.h"
11
11
12
+ /* Xxo objects */
13
+
12
14
static PyObject * ErrorObject ;
13
15
14
16
typedef struct {
Original file line number Diff line number Diff line change 93
93
<_ProjectFileVersion >10.0.30319.1</_ProjectFileVersion >
94
94
</PropertyGroup >
95
95
<ItemDefinitionGroup >
96
- <ClCompile >
97
- <PreprocessorDefinitions >%(PreprocessorDefinitions);Py_LIMITED_API=0x030A0000</PreprocessorDefinitions >
98
- </ClCompile >
99
96
<Link >
100
97
<AdditionalDependencies >wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies >
101
98
</Link >
Original file line number Diff line number Diff line change 93
93
<_ProjectFileVersion >10.0.30319.1</_ProjectFileVersion >
94
94
</PropertyGroup >
95
95
<ItemDefinitionGroup >
96
- <ClCompile >
97
- <PreprocessorDefinitions >%(PreprocessorDefinitions);Py_LIMITED_API=0x03060000</PreprocessorDefinitions >
98
- </ClCompile >
99
96
<Link >
100
97
<AdditionalDependencies >wsock32.lib;%(AdditionalDependencies)</AdditionalDependencies >
101
98
</Link >
Original file line number Diff line number Diff line change @@ -1865,10 +1865,8 @@ def detect_modules(self):
1865
1865
## self.add(Extension('xx', ['xxmodule.c']))
1866
1866
1867
1867
# Limited C API
1868
- self .add (Extension ('xxlimited' , ['xxlimited.c' ],
1869
- define_macros = [('Py_LIMITED_API' , '0x030a0000' )]))
1870
- self .add (Extension ('xxlimited_35' , ['xxlimited_35.c' ],
1871
- define_macros = [('Py_LIMITED_API' , '0x03050000' )]))
1868
+ self .add (Extension ('xxlimited' , ['xxlimited.c' ]))
1869
+ self .add (Extension ('xxlimited_35' , ['xxlimited_35.c' ]))
1872
1870
1873
1871
def detect_tkinter_fromenv (self ):
1874
1872
# Build _tkinter using the Tcl/Tk locations specified by
You can’t perform that action at this time.
0 commit comments