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

Skip to content

Commit 4542897

Browse files
committed
Added the new unicode defines. Not really tested yet, but Python compiles again at least.
1 parent 683ecc7 commit 4542897

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Mac/Include/config.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,15 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
199199
/* Define if the compiler provides a wchar.h header file. */
200200
#define HAVE_WCHAR_H 1
201201

202+
/* Define if you want to have a Unicode type. */
203+
#define Py_USING_UNICODE 1
204+
205+
/* Define as the integral type used for Unicode representation. */
206+
#define PY_UNICODE_TYPE wchar_t
207+
208+
/* Define as the size of the unicode type. */
209+
#define Py_UNICODE_SIZE 2
210+
202211
/* Define if malloc(0) returns a NULL pointer */
203212
#ifdef USE_MSL_MALLOC
204213
#define MALLOC_ZERO_RETURNS_NULL

0 commit comments

Comments
 (0)