Skip to content

MNT: account for cpython deprecations #13836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2019
Merged
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
1 change: 1 addition & 0 deletions src/_macosx.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define PY_SSIZE_T_CLEAN
#include <Cocoa/Cocoa.h>
#include <ApplicationServices/ApplicationServices.h>
#include <sys/socket.h>
Expand Down
2 changes: 1 addition & 1 deletion src/_png.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Undefining _POSIX_C_SOURCE and _XOPEN_SOURCE stops a couple
of harmless warnings.
*/

#define PY_SSIZE_T_CLEAN

extern "C" {
# include <png.h>
Expand Down
2 changes: 1 addition & 1 deletion src/_tkagg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* See LICENSE/LICENSE.PIL for details.
*
*/

#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <cstdlib>
#include <cstdio>
Expand Down
2 changes: 1 addition & 1 deletion src/_ttconv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Python wrapper for TrueType conversion library in ../ttconv.
*/

#define PY_SSIZE_T_CLEAN
#include "mplutils.h"

#include <Python.h>
Expand Down
2 changes: 1 addition & 1 deletion src/file_compat.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef MPL_FILE_COMPAT_H
#define MPL_FILE_COMPAT_H

#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <stdio.h>
#include "numpy/npy_common.h"
Expand Down
1 change: 1 addition & 0 deletions src/mplutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#ifndef MPLUTILS_H
#define MPLUTILS_H
#define PY_SSIZE_T_CLEAN

#include <stdint.h>

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

#ifndef MPL_NUMPY_CPP_H
#define MPL_NUMPY_CPP_H

#define PY_SSIZE_T_CLEAN
/***************************************************************************
* This file is based on original work by Mark Wiebe, available at:
*
Expand Down
2 changes: 1 addition & 1 deletion src/py_adaptors.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#ifndef MPL_PY_ADAPTORS_H
#define MPL_PY_ADAPTORS_H

#define PY_SSIZE_T_CLEAN
/***************************************************************************
* This module contains a number of C++ classes that adapt Python data
* structures to C++ and Agg-friendly interfaces.
Expand Down
2 changes: 1 addition & 1 deletion src/py_converters.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define NO_IMPORT_ARRAY

#define PY_SSIZE_T_CLEAN
#include "py_converters.h"
#include "numpy_cpp.h"

Expand Down
1 change: 1 addition & 0 deletions src/qhull_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* triangulation, construct an instance of the matplotlib.tri.Triangulation
* class without specifying a triangles array.
*/
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#include "numpy/ndarrayobject.h"
#include "libqhull/qhull_a.h"
Expand Down