File tree 1 file changed +21
-1
lines changed
1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change 60
60
*/
61
61
62
62
#ifdef _DEBUG
63
+ // Include these low level headers before undefing _DEBUG. Otherwise when doing
64
+ // a debug build against a release build of python the compiler will end up
65
+ // including these low level headers without DEBUG enabled, causing it to try
66
+ // and link release versions of this low level C api.
67
+ # include <basetsd.h>
68
+ # include <assert.h>
69
+ # include <ctype.h>
70
+ # include <errno.h>
71
+ # include <io.h>
72
+ # include <math.h>
73
+ # include <sal.h>
74
+ # include <stdarg.h>
75
+ # include <stddef.h>
76
+ # include <stdio.h>
77
+ # include <stdlib.h>
78
+ # include <string.h>
79
+ # include <sys/stat.h>
80
+ # include <time.h>
81
+ # include <wchar.h>
63
82
# undef _DEBUG
64
83
# if defined(_MSC_VER ) && _MSC_VER >= 1400
65
- # define _CRT_NOFORCE_MANIFEST 1
84
+ # define _CRT_NOFORCE_MANIFEST 1
66
85
# endif
67
86
# include <Python.h>
68
87
# define _DEBUG
69
88
#else
70
89
# include <Python.h>
71
90
#endif
72
91
92
+
73
93
#endif
You can’t perform that action at this time.
0 commit comments