Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix _PyPreConfig_WINDOWS_INIT
  • Loading branch information
vstinner committed Mar 1, 2019
commit 02a79a976b31c11749e18827216115d63b2549c9
7 changes: 3 additions & 4 deletions Include/cpython/coreconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,16 @@ typedef struct {
} _PyPreConfig;

#ifdef MS_WINDOWS
# define _PyCoreConfig_WINDOWS_INIT \
# define _PyPreConfig_WINDOWS_INIT \
.legacy_windows_fs_encoding = -1, \
.legacy_windows_stdio = -1,
#else
# define _PyCoreConfig_WINDOWS_INIT
# define _PyPreConfig_WINDOWS_INIT
#endif

#define _PyPreConfig_INIT \
(_PyPreConfig){ \
_PyCoreConfig_WINDOWS_INIT \
_PyPreConfig_WINDOWS_INIT \
.use_environment = -1, \
.isolated = -1, \
.utf8_mode = -1, \
Expand Down Expand Up @@ -360,7 +360,6 @@ typedef struct {
.quiet = -1, \
.user_site_directory = -1, \
.buffered_stdio = -1, \
_PyCoreConfig_WINDOWS_INIT \
._install_importlib = 1, \
._check_hash_pycs_mode = "default", \
._frozen = -1}
Expand Down