Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/_avif.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PY_SSIZE_T_CLEAN

#include <Python.h>
#include "avif/avif.h"
#include <avif/avif.h>

// Encoder type
typedef struct {
Expand Down
8 changes: 4 additions & 4 deletions src/_imaging.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@
*/

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include <Python.h>

#ifdef HAVE_LIBJPEG
#include "jconfig.h"
#include <jconfig.h>
#ifdef LIBJPEG_TURBO_VERSION
#define JCONFIG_INCLUDED
#ifdef __CYGWIN__
#define _BASETSD_H
#endif
#include "jpeglib.h"
#include <jpeglib.h>
#endif
#endif

#ifdef HAVE_LIBZ
#include "zlib.h"
#include <zlib.h>
#endif

#ifdef HAVE_LIBTIFF
Expand Down
8 changes: 4 additions & 4 deletions src/_imagingcms.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ kevin@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 <Python.h> // Include before wchar.h so _GNU_SOURCE is set
#include <wchar.h>
#include <datetime.h>

#include "lcms2.h"
#include <lcms2.h>
#include "libImaging/Imaging.h"

#define PYCMSVERSION "1.0.0 pil"
Expand Down
2 changes: 1 addition & 1 deletion src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include <Python.h>
#include "thirdparty/pythoncapi_compat.h"
#include "libImaging/Imaging.h"

Expand Down
6 changes: 3 additions & 3 deletions src/_imagingmath.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* See the README file for information on usage and redistribution.
*/

#include "Python.h"
#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
Expand Down
2 changes: 1 addition & 1 deletion src/_imagingtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* See the README file for information on usage and redistribution.
*/

#include "Python.h"
#include <Python.h>
#include "libImaging/Imaging.h"

#include "Tk/_tkmini.h"
Expand Down
2 changes: 1 addition & 1 deletion src/decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/* FIXME: make these pluggable! */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include <Python.h>

#include "libImaging/Imaging.h"

Expand Down
2 changes: 1 addition & 1 deletion src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include <Python.h>

#include "libImaging/Imaging.h"

Expand Down
2 changes: 1 addition & 1 deletion src/encode.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/* FIXME: make these pluggable! */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include <Python.h>

#include "thirdparty/pythoncapi_compat.h"
#include "libImaging/Imaging.h"
Expand Down
2 changes: 1 addition & 1 deletion src/libImaging/Fill.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "Imaging.h"

#include "math.h"
#include <math.h>

Imaging
ImagingFill(Imaging im, const void *colour) {
Expand Down
2 changes: 1 addition & 1 deletion src/libImaging/ImPlatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*/

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include <Python.h>

/* Check that we have an ANSI compliant compiler */
#ifndef HAVE_PROTOTYPES
Expand Down
2 changes: 1 addition & 1 deletion src/libImaging/Jpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* Copyright (c) 1995-1996 by Fredrik Lundh
*/

#include "jpeglib.h"
#include <jpeglib.h>

#include <setjmp.h>

Expand Down
2 changes: 1 addition & 1 deletion src/libImaging/ZipCodecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Copyright (c) Fredrik Lundh 1996.
*/

#include "zlib.h"
#include <zlib.h>

/* modes */
#define ZIP_PNG 0 /* continuous, filtered image data */
Expand Down
2 changes: 1 addition & 1 deletion src/libImaging/codec_fd.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "Python.h"
#include <Python.h>
#include "Imaging.h"

Py_ssize_t
Expand Down
2 changes: 1 addition & 1 deletion src/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* FIXME: should move the memory mapping primitives into libImaging!
*/

#include "Python.h"
#include <Python.h>

#include "libImaging/Imaging.h"

Expand Down
2 changes: 1 addition & 1 deletion src/outline.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* See the README file for information on usage and redistribution.
*/

#include "Python.h"
#include <Python.h>

#include "libImaging/Imaging.h"

Expand Down
2 changes: 1 addition & 1 deletion src/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* See the README file for information on usage and redistribution.
*/

#include "Python.h"
#include <Python.h>
#include "thirdparty/pythoncapi_compat.h"
#include "libImaging/Imaging.h"

Expand Down
Loading