mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-15 06:07:33 +03:00
Move include Python.h to ImagingPlatform
This commit is contained in:
parent
34488d1d4e
commit
ff7c29ced9
|
@ -282,7 +282,7 @@ class TestEmbeddable:
|
||||||
home = sys.prefix.replace("\\", "\\\\")
|
home = sys.prefix.replace("\\", "\\\\")
|
||||||
fh.write(
|
fh.write(
|
||||||
f"""
|
f"""
|
||||||
#include "Python.h"
|
#include <Python.h>
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{{
|
{{
|
||||||
|
|
|
@ -71,9 +71,6 @@
|
||||||
* See the README file for information on usage and redistribution.
|
* See the README file for information on usage and redistribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define PY_SSIZE_T_CLEAN
|
|
||||||
#include "Python.h"
|
|
||||||
|
|
||||||
#ifdef HAVE_LIBJPEG
|
#ifdef HAVE_LIBJPEG
|
||||||
#include "jconfig.h"
|
#include "jconfig.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -26,15 +26,11 @@ kevin@cazabon.com\n\
|
||||||
https://www.cazabon.com\n\
|
https://www.cazabon.com\n\
|
||||||
"
|
"
|
||||||
|
|
||||||
#define PY_SSIZE_T_CLEAN
|
#include "libImaging/Imaging.h" // Include before wchar.h so _GNU_SOURCE is set
|
||||||
#include "Python.h" // Include before wchar.h so _GNU_SOURCE is set
|
|
||||||
#include "wchar.h"
|
|
||||||
#include "datetime.h"
|
|
||||||
|
|
||||||
#include "lcms2.h"
|
#include <wchar.h>
|
||||||
#include "libImaging/Imaging.h"
|
#include <datetime.h>
|
||||||
|
#include <lcms2.h>
|
||||||
#define PYCMSVERSION "1.0.0 pil"
|
|
||||||
|
|
||||||
/* version history */
|
/* version history */
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,8 @@
|
||||||
* Copyright (c) 1998-2007 by Secret Labs AB
|
* 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 "libImaging/Imaging.h"
|
||||||
|
#include "thirdparty/pythoncapi_compat.h"
|
||||||
|
|
||||||
#include <ft2build.h>
|
#include <ft2build.h>
|
||||||
#include FT_FREETYPE_H
|
#include FT_FREETYPE_H
|
||||||
|
|
|
@ -13,12 +13,10 @@
|
||||||
* See the README file for information on usage and redistribution.
|
* See the README file for information on usage and redistribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Python.h"
|
|
||||||
|
|
||||||
#include "libImaging/Imaging.h"
|
#include "libImaging/Imaging.h"
|
||||||
|
|
||||||
#include "math.h"
|
#include <math.h>
|
||||||
#include "float.h"
|
#include <float.h>
|
||||||
|
|
||||||
#define MAX_INT32 2147483647.0
|
#define MAX_INT32 2147483647.0
|
||||||
#define MIN_INT32 -2147483648.0
|
#define MIN_INT32 -2147483648.0
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
* See the README file for information on usage and redistribution.
|
* See the README file for information on usage and redistribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Python.h"
|
|
||||||
#include "libImaging/Imaging.h"
|
#include "libImaging/Imaging.h"
|
||||||
|
|
||||||
#include "Tk/_tkmini.h"
|
#include "Tk/_tkmini.h"
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#define PY_SSIZE_T_CLEAN
|
|
||||||
#include <Python.h>
|
|
||||||
#include "libImaging/Imaging.h"
|
#include "libImaging/Imaging.h"
|
||||||
|
|
||||||
#include <webp/encode.h>
|
#include <webp/encode.h>
|
||||||
#include <webp/decode.h>
|
#include <webp/decode.h>
|
||||||
#include <webp/types.h>
|
#include <webp/types.h>
|
||||||
|
|
|
@ -29,11 +29,7 @@
|
||||||
|
|
||||||
/* FIXME: make these pluggable! */
|
/* FIXME: make these pluggable! */
|
||||||
|
|
||||||
#define PY_SSIZE_T_CLEAN
|
|
||||||
#include "Python.h"
|
|
||||||
|
|
||||||
#include "libImaging/Imaging.h"
|
#include "libImaging/Imaging.h"
|
||||||
|
|
||||||
#include "libImaging/Bit.h"
|
#include "libImaging/Bit.h"
|
||||||
#include "libImaging/Bcn.h"
|
#include "libImaging/Bcn.h"
|
||||||
#include "libImaging/Gif.h"
|
#include "libImaging/Gif.h"
|
||||||
|
|
|
@ -22,9 +22,6 @@
|
||||||
* See the README file for information on usage and redistribution.
|
* See the README file for information on usage and redistribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define PY_SSIZE_T_CLEAN
|
|
||||||
#include "Python.h"
|
|
||||||
|
|
||||||
#include "libImaging/Imaging.h"
|
#include "libImaging/Imaging.h"
|
||||||
|
|
||||||
/* -------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------- */
|
||||||
|
|
|
@ -22,11 +22,8 @@
|
||||||
|
|
||||||
/* FIXME: make these pluggable! */
|
/* FIXME: make these pluggable! */
|
||||||
|
|
||||||
#define PY_SSIZE_T_CLEAN
|
|
||||||
#include "Python.h"
|
|
||||||
|
|
||||||
#include "thirdparty/pythoncapi_compat.h"
|
|
||||||
#include "libImaging/Imaging.h"
|
#include "libImaging/Imaging.h"
|
||||||
|
#include "thirdparty/pythoncapi_compat.h"
|
||||||
#include "libImaging/Gif.h"
|
#include "libImaging/Gif.h"
|
||||||
|
|
||||||
#ifdef HAVE_UNISTD_H
|
#ifdef HAVE_UNISTD_H
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#include "Python.h"
|
|
||||||
#include "Imaging.h"
|
#include "Imaging.h"
|
||||||
|
|
||||||
Py_ssize_t
|
Py_ssize_t
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
* FIXME: should move the memory mapping primitives into libImaging!
|
* FIXME: should move the memory mapping primitives into libImaging!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Python.h"
|
|
||||||
|
|
||||||
#include "libImaging/Imaging.h"
|
#include "libImaging/Imaging.h"
|
||||||
|
|
||||||
/* compatibility wrappers (defined in _imaging.c) */
|
/* compatibility wrappers (defined in _imaging.c) */
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
* See the README file for information on usage and redistribution.
|
* See the README file for information on usage and redistribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Python.h"
|
|
||||||
|
|
||||||
#include "libImaging/Imaging.h"
|
#include "libImaging/Imaging.h"
|
||||||
|
|
||||||
/* -------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------- */
|
||||||
|
|
|
@ -25,9 +25,8 @@
|
||||||
* See the README file for information on usage and redistribution.
|
* See the README file for information on usage and redistribution.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "Python.h"
|
|
||||||
#include "thirdparty/pythoncapi_compat.h"
|
|
||||||
#include "libImaging/Imaging.h"
|
#include "libImaging/Imaging.h"
|
||||||
|
#include "thirdparty/pythoncapi_compat.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user