File tree Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 1
1
2
2
/* Core extension modules are built-in on some platforms (e.g. Windows). */
3
3
#ifdef Py_BUILD_CORE
4
+ #define Py_BUILD_CORE_MODULE
4
5
#undef Py_BUILD_CORE
5
6
#endif
6
7
Original file line number Diff line number Diff line change 1
1
2
2
/* Core extension modules are built-in on some platforms (e.g. Windows). */
3
3
#ifdef Py_BUILD_CORE
4
+ #define Py_BUILD_CORE_MODULE
4
5
#undef Py_BUILD_CORE
5
6
#endif
6
7
Original file line number Diff line number Diff line change @@ -278,18 +278,20 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
278
278
/* For an MSVC DLL, we can nominate the .lib files used by extensions */
279
279
#ifdef MS_COREDLL
280
280
# ifndef Py_BUILD_CORE /* not building the core - must be an ext */
281
- # if defined(_MSC_VER )
282
- /* So MSVC users need not specify the .lib file in
283
- their Makefile (other compilers are generally
284
- taken care of by distutils.) */
285
- # if defined(_DEBUG )
286
- # pragma comment(lib,"python37_d.lib")
287
- # elif defined(Py_LIMITED_API )
288
- # pragma comment(lib,"python3.lib")
289
- # else
290
- # pragma comment(lib,"python37.lib")
291
- # endif /* _DEBUG */
292
- # endif /* _MSC_VER */
281
+ # ifndef Py_BUILD_CORE_MODULE
282
+ # if defined(_MSC_VER )
283
+ /* So MSVC users need not specify the .lib
284
+ file in their Makefile (other compilers are
285
+ generally taken care of by distutils.) */
286
+ # if defined(_DEBUG )
287
+ # pragma comment(lib,"python37_d.lib")
288
+ # elif defined(Py_LIMITED_API )
289
+ # pragma comment(lib,"python3.lib")
290
+ # else
291
+ # pragma comment(lib,"python37.lib")
292
+ # endif /* _DEBUG */
293
+ # endif /* _MSC_VER */
294
+ # endif /* Py_BUILD_CORE_MODULE */
293
295
# endif /* Py_BUILD_CORE */
294
296
#endif /* MS_COREDLL */
295
297
Original file line number Diff line number Diff line change 1
1
#include <Python.h>
2
- #include "internal/pystate.h"
3
2
#include <inttypes.h>
4
3
#include <stdio.h>
5
4
Original file line number Diff line number Diff line change 1
1
/* Minimal main program -- everything is loaded from the library */
2
2
3
3
#include "Python.h"
4
- #include "internal/pystate.h"
5
4
#include <locale.h>
6
5
7
6
#ifdef __FreeBSD__
You can’t perform that action at this time.
0 commit comments