Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b26f363

Browse files
committed
Enable pymalloc by default in the Windows build.
1 parent 76fffd8 commit b26f363

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

PC/pyconfig.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ typedef int pid_t;
193193

194194
/* egcs/gnu-win32 defines __GNUC__ and _WIN32 */
195195
#if defined(__GNUC__) && defined(_WIN32)
196-
/* XXX These defines are likely incomplete, but should be easy to fix.
196+
/* XXX These defines are likely incomplete, but should be easy to fix.
197197
They should be complete enough to build extension modules. */
198198
/* Suggested by Rene Liebscher <[email protected]> to avoid a GCC 2.91.*
199199
bug that requires structure imports. More recent versions of the
@@ -239,13 +239,13 @@ you must define MS_NO_COREDLL (do not test this macro) */
239239
#endif
240240

241241
#define HAVE_LONG_LONG 1
242-
#define LONG_LONG long long
242+
#define LONG_LONG long long
243243
#endif /* GNUC */
244244

245245
/* lcc-win32 defines __LCC__ */
246246

247247
#if defined(__LCC__)
248-
/* XXX These defines are likely incomplete, but should be easy to fix.
248+
/* XXX These defines are likely incomplete, but should be easy to fix.
249249
They should be complete enough to build extension modules. */
250250

251251
#define NT /* NT is obsolete - please use MS_WIN32 instead */
@@ -506,6 +506,9 @@ typedef int pid_t;
506506
/* Define if you want cycle garbage collection */
507507
#define WITH_CYCLE_GC 1
508508

509+
/* Use Python's own small-block memory-allocator. */
510+
#define WITH_PYMALLOC 1
511+
509512
/* Define if you have clock. */
510513
/* #define HAVE_CLOCK */
511514

0 commit comments

Comments
 (0)