Skip to content

Commit 72c9c58

Browse files
committed
BITS: Fix build error in handling of wchar_t
1 parent 2a85a1a commit 72c9c58

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Modules/_ctypes/callproc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@
9191
#define CTYPES_CAPSULE_ERROROBJ "_ctypes/callproc.c error object"
9292
CTYPES_CAPSULE_INSTANTIATE_DESTRUCTOR(CTYPES_CAPSULE_ERROROBJ)
9393

94+
#if defined(CTYPES_UNICODE) && !defined(HAVE_USABLE_WCHAR_T)
9495
#define CTYPES_CAPSULE_WCHAR_T "_ctypes/callproc.c wchar_t buffer from unicode"
9596
CTYPES_CAPSULE_INSTANTIATE_DESTRUCTOR(CTYPES_CAPSULE_WCHAR_T)
97+
#endif
9698

9799
/*
98100
ctypes maintains thread-local storage that has space for two error numbers:

Modules/_ctypes/cfield.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
#include "ctypes.h"
1212

1313

14+
#if defined(CTYPES_UNICODE) && !defined(HAVE_USABLE_WCHAR_T)
1415
#define CTYPES_CAPSULE_WCHAR_T "_ctypes/cfield.c wchar_t buffer from unicode"
1516
CTYPES_CAPSULE_INSTANTIATE_DESTRUCTOR(CTYPES_CAPSULE_WCHAR_T)
17+
#endif
1618

1719

1820
/******************************************************************/

0 commit comments

Comments
 (0)