mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
f2add0b2aa
commit
055f5b0979
@ -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>
|
||||
|
@ -1,3 +1,4 @@
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "util.h"
|
||||
#include <stdlib.h>
|
||||
#include <libproc.h>
|
||||
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
#include <time.h>
|
||||
|
@ -3,6 +3,7 @@
|
||||
*/
|
||||
|
||||
#define UNICODE
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#define _WIN32_WINNT 0x0502
|
||||
#define WINDOWS_LEAN_AND_MEAN
|
||||
|
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#define UNICODE
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include <Python.h>
|
||||
#ifdef __FreeBSD__
|
||||
|
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#define UNICODE
|
||||
#include <Python.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
#define UNICODE
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Windows.h>
|
||||
#include <atlbase.h>
|
||||
#include <Python.h>
|
||||
|
@ -20,6 +20,8 @@
|
||||
*/
|
||||
|
||||
#define _DARWIN_USE_64_BIT_INODE
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -4,6 +4,7 @@
|
||||
*
|
||||
* Distributed under terms of the GPL3 license.
|
||||
*/
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include <Python.h>
|
||||
#import <AppKit/AppKit.h>
|
||||
|
@ -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>
|
||||
|
@ -1,4 +1,5 @@
|
||||
#define UNICODE
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
*
|
||||
* Distributed under terms of the GPL3 license.
|
||||
*/
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include <Python.h>
|
||||
#include <algorithm>
|
||||
|
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#define UNICODE
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
|
||||
#include <openssl/rand.h>
|
||||
|
@ -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>
|
||||
|
@ -5,6 +5,7 @@
|
||||
* Distributed under terms of the GPL3 license.
|
||||
*/
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
#include <hyphen.h>
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include <Python.h>
|
||||
#include <QImage>
|
||||
|
@ -3,6 +3,7 @@
|
||||
*
|
||||
* Python/C implementation of an LZX compressor type.
|
||||
*/
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include <Python.h>
|
||||
#include <structmember.h>
|
||||
|
@ -3,6 +3,7 @@
|
||||
*
|
||||
* Python module C glue code.
|
||||
*/
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include <Python.h>
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Python module C glue code.
|
||||
*/
|
||||
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include <Python.h>
|
||||
|
||||
#include <d3des.h>
|
||||
|
@ -1,4 +1,6 @@
|
||||
#define UNICODE
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include <Python.h>
|
||||
#include <datetime.h>
|
||||
#include <errno.h>
|
||||
|
@ -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>
|
||||
|
@ -5,6 +5,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include <Python.h>
|
||||
#include <stdint.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user