Add the Py_SSIZE_T_CLEAN definition needed for python 3.10

Ideally someone needs to go through all the code and check that nothing
breaks because of this macro, but, I dont have that kind of time
This commit is contained in:
Kovid Goyal 2021-11-30 23:32:29 +05:30
parent f2add0b2aa
commit 055f5b0979
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
22 changed files with 24 additions and 3 deletions

View File

@ -5,6 +5,7 @@
* Distributed under terms of the GPL3 license.
*/
#define PY_SSIZE_T_CLEAN
#include <stdio.h>
#include <string.h>
#include <errno.h>

View File

@ -1,3 +1,4 @@
#define PY_SSIZE_T_CLEAN
#include "util.h"
#include <stdlib.h>
#include <libproc.h>

View File

@ -5,7 +5,7 @@
*/
#pragma once
#define PY_SSIZE_T_CLEAN
#include <stdio.h>
#include <stdbool.h>
#include <time.h>

View File

@ -3,6 +3,7 @@
*/
#define UNICODE
#define PY_SSIZE_T_CLEAN
#define _WIN32_WINNT 0x0502
#define WINDOWS_LEAN_AND_MEAN

View File

@ -6,6 +6,7 @@
*/
#define UNICODE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#ifdef __FreeBSD__

View File

@ -6,6 +6,7 @@
*/
#define PY_SSIZE_T_CLEAN
#define UNICODE
#include <Python.h>
#include <sys/types.h>

View File

@ -7,6 +7,7 @@
#pragma once
#define UNICODE
#define PY_SSIZE_T_CLEAN
#include <Windows.h>
#include <atlbase.h>
#include <Python.h>

View File

@ -20,6 +20,8 @@
*/
#define _DARWIN_USE_64_BIT_INODE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <stdio.h>

View File

@ -4,6 +4,7 @@
*
* Distributed under terms of the GPL3 license.
*/
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#import <AppKit/AppKit.h>

View File

@ -22,6 +22,7 @@
Copyright (C) 2005 Bram Cohen, Copyright (C) 2005, 2006 Canonical Ltd
*/
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <stdlib.h>

View File

@ -1,4 +1,5 @@
#define UNICODE
#define PY_SSIZE_T_CLEAN
#include <Python.h>

View File

@ -4,6 +4,7 @@
*
* Distributed under terms of the GPL3 license.
*/
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <algorithm>

View File

@ -6,6 +6,7 @@
*/
#define UNICODE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <openssl/rand.h>

View File

@ -5,6 +5,7 @@
* Distributed under terms of the GPL3 license.
*/
#define PY_SSIZE_T_CLEAN
#import <AppKit/AppKit.h>
#import <AppKit/NSWindow.h>
#import <Availability.h>

View File

@ -5,6 +5,7 @@
* Distributed under terms of the GPL3 license.
*/
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <hyphen.h>

View File

@ -6,6 +6,7 @@
*/
#pragma once
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <QImage>

View File

@ -3,6 +3,7 @@
*
* Python/C implementation of an LZX compressor type.
*/
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <structmember.h>

View File

@ -3,6 +3,7 @@
*
* Python module C glue code.
*/
#define PY_SSIZE_T_CLEAN
#include <Python.h>

View File

@ -4,7 +4,7 @@
* Python module C glue code.
*/
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <d3des.h>

View File

@ -1,4 +1,6 @@
#define UNICODE
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <datetime.h>
#include <errno.h>

View File

@ -6,7 +6,7 @@
* Distributed under terms of the GPL3 license.
*/
#define PY_SSIZE_T_CLEAN 1
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <new>
#include <string>

View File

@ -5,6 +5,7 @@
*/
#pragma once
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <stdint.h>