aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-04-13 10:46:21 +0900
committerGitHub <noreply@github.com>2019-04-13 10:46:21 +0900
commitc88feceb449d6e85d7e17ec36559206094d10d81 (patch)
treecda7737ab74c0419b952e440b86e10a6101e3d7f /Doc/includes
parentbpo-36618: Don't add -fmax-type-align flag to old clang (GH-12811) (diff)
downloadcpython-c88feceb449d6e85d7e17ec36559206094d10d81.tar.gz
cpython-c88feceb449d6e85d7e17ec36559206094d10d81.tar.bz2
cpython-c88feceb449d6e85d7e17ec36559206094d10d81.zip
Doc: define PY_SSIZE_T_CLEAN always (GH-12794)
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/custom.c1
-rw-r--r--Doc/includes/custom2.c1
-rw-r--r--Doc/includes/custom3.c1
-rw-r--r--Doc/includes/custom4.c1
-rw-r--r--Doc/includes/run-func.c1
-rw-r--r--Doc/includes/sublist.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/Doc/includes/custom.c b/Doc/includes/custom.c
index fb2c7b2a430..13d16f5424a 100644
--- a/Doc/includes/custom.c
+++ b/Doc/includes/custom.c
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
typedef struct {
diff --git a/Doc/includes/custom2.c b/Doc/includes/custom2.c
index 51ab4b80d68..6477a19dafe 100644
--- a/Doc/includes/custom2.c
+++ b/Doc/includes/custom2.c
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "structmember.h"
diff --git a/Doc/includes/custom3.c b/Doc/includes/custom3.c
index 09e87355b91..213d0864ce1 100644
--- a/Doc/includes/custom3.c
+++ b/Doc/includes/custom3.c
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "structmember.h"
diff --git a/Doc/includes/custom4.c b/Doc/includes/custom4.c
index 0994d8fda0e..b0b2906dbdc 100644
--- a/Doc/includes/custom4.c
+++ b/Doc/includes/custom4.c
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "structmember.h"
diff --git a/Doc/includes/run-func.c b/Doc/includes/run-func.c
index 9caf1fdb201..392f86d65ec 100644
--- a/Doc/includes/run-func.c
+++ b/Doc/includes/run-func.c
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
int
diff --git a/Doc/includes/sublist.c b/Doc/includes/sublist.c
index 376dddfac09..76ff93948cf 100644
--- a/Doc/includes/sublist.c
+++ b/Doc/includes/sublist.c
@@ -1,3 +1,4 @@
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
typedef struct {