summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorNicholas Sim <nsim+github@posteo.net>2021-02-16 12:04:38 (GMT)
committerGitHub <noreply@github.com>2021-02-16 12:04:38 (GMT)
commit17dbd4078b68db8954df6b5cdc40b786bc4ad7af (patch)
treee48e54740a78deac7d08fb72ad2a1fb15fce8cc1 /Include
parent871eb4237b9be95263ca13ba8856e78344eb9eba (diff)
downloadcpython-17dbd4078b68db8954df6b5cdc40b786bc4ad7af.zip
cpython-17dbd4078b68db8954df6b5cdc40b786bc4ad7af.tar.gz
cpython-17dbd4078b68db8954df6b5cdc40b786bc4ad7af.tar.bz2
bpo-35134, Include: Move pytime.h to cpython/pytime.h (GH-23988)
This change is backward compatible since C extension modules must not include "pytime.h" directly, but only include "Python.h".
Diffstat (limited to 'Include')
-rw-r--r--Include/Python.h2
-rw-r--r--Include/cpython/pytime.h (renamed from Include/pytime.h)3
2 files changed, 1 insertions, 4 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 57f71d4..76ead9e 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -82,7 +82,6 @@
#error "PYMALLOC_DEBUG requires WITH_PYMALLOC"
#endif
#include "pymath.h"
-#include "pytime.h"
#include "pymem.h"
#include "object.h"
@@ -128,6 +127,7 @@
#include "structseq.h"
#include "namespaceobject.h"
#include "picklebufobject.h"
+#include "cpython/pytime.h"
#include "codecs.h"
#include "pyerrors.h"
diff --git a/Include/pytime.h b/Include/cpython/pytime.h
index 944170f..56607d1 100644
--- a/Include/pytime.h
+++ b/Include/cpython/pytime.h
@@ -2,9 +2,6 @@
#ifndef Py_PYTIME_H
#define Py_PYTIME_H
-#include "pyconfig.h" /* include for defines */
-#include "object.h"
-
/**************************************************************************
Symbols and macros to supply platform-independent interfaces to time related
functions and constants