Move include Python.h to ImagingPlatform

This commit is contained in:
Aleksandr Karpinskii 2024-09-01 21:09:14 +04:00 committed by Александр Карпинский
parent 34488d1d4e
commit ff7c29ced9
14 changed files with 11 additions and 40 deletions

View File

@ -282,7 +282,7 @@ class TestEmbeddable:
home = sys.prefix.replace("\\", "\\\\")
fh.write(
f"""
#include "Python.h"
#include <Python.h>
int main(int argc, char* argv[])
{{

View File

@ -71,9 +71,6 @@
* See the README file for information on usage and redistribution.
*/
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifdef HAVE_LIBJPEG
#include "jconfig.h"
#endif

View File

@ -26,15 +26,11 @@ kevin@cazabon.com\n\
https://www.cazabon.com\n\
"
#define PY_SSIZE_T_CLEAN
#include "Python.h" // Include before wchar.h so _GNU_SOURCE is set
#include "wchar.h"
#include "datetime.h"
#include "libImaging/Imaging.h" // Include before wchar.h so _GNU_SOURCE is set
#include "lcms2.h"
#include "libImaging/Imaging.h"
#define PYCMSVERSION "1.0.0 pil"
#include <wchar.h>
#include <datetime.h>
#include <lcms2.h>
/* version history */

View File

@ -18,10 +18,8 @@
* Copyright (c) 1998-2007 by Secret Labs AB
*/
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "thirdparty/pythoncapi_compat.h"
#include "libImaging/Imaging.h"
#include "thirdparty/pythoncapi_compat.h"
#include <ft2build.h>
#include FT_FREETYPE_H

View File

@ -13,12 +13,10 @@
* See the README file for information on usage and redistribution.
*/
#include "Python.h"
#include "libImaging/Imaging.h"
#include "math.h"
#include "float.h"
#include <math.h>
#include <float.h>
#define MAX_INT32 2147483647.0
#define MIN_INT32 -2147483648.0

View File

@ -12,7 +12,6 @@
* See the README file for information on usage and redistribution.
*/
#include "Python.h"
#include "libImaging/Imaging.h"
#include "Tk/_tkmini.h"

View File

@ -1,6 +1,5 @@
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "libImaging/Imaging.h"
#include <webp/encode.h>
#include <webp/decode.h>
#include <webp/types.h>

View File

@ -29,11 +29,7 @@
/* FIXME: make these pluggable! */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "libImaging/Imaging.h"
#include "libImaging/Bit.h"
#include "libImaging/Bcn.h"
#include "libImaging/Gif.h"

View File

@ -22,9 +22,6 @@
* See the README file for information on usage and redistribution.
*/
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "libImaging/Imaging.h"
/* -------------------------------------------------------------------- */

View File

@ -22,11 +22,8 @@
/* FIXME: make these pluggable! */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "thirdparty/pythoncapi_compat.h"
#include "libImaging/Imaging.h"
#include "thirdparty/pythoncapi_compat.h"
#include "libImaging/Gif.h"
#ifdef HAVE_UNISTD_H

View File

@ -1,4 +1,3 @@
#include "Python.h"
#include "Imaging.h"
Py_ssize_t

View File

@ -18,8 +18,6 @@
* FIXME: should move the memory mapping primitives into libImaging!
*/
#include "Python.h"
#include "libImaging/Imaging.h"
/* compatibility wrappers (defined in _imaging.c) */

View File

@ -17,8 +17,6 @@
* See the README file for information on usage and redistribution.
*/
#include "Python.h"
#include "libImaging/Imaging.h"
/* -------------------------------------------------------------------- */

View File

@ -25,9 +25,8 @@
* See the README file for information on usage and redistribution.
*/
#include "Python.h"
#include "thirdparty/pythoncapi_compat.h"
#include "libImaging/Imaging.h"
#include "thirdparty/pythoncapi_compat.h"
#include <math.h>