summaryrefslogtreecommitdiff
path: root/Modules/pyexpat.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-17 17:48:27 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-03-17 17:48:27 +0100
commitf024d263b4af789af0eb3727417bbeec582f69eb (patch)
treefac003f32f4a6c4fdda1a9e40ac7c1a82a8594a1 /Modules/pyexpat.c
parentbeb09977bce49df9d5a8f23a488f89368916bca7 (diff)
downloadcpython-git-f024d263b4af789af0eb3727417bbeec582f69eb.tar.gz
Issue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpat
_codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw modules. pyexpat.c doesn't need to redeclare PyMODINIT_FUNC, it's already declared in Include/pyport.h.
Diffstat (limited to 'Modules/pyexpat.c')
-rw-r--r--Modules/pyexpat.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/Modules/pyexpat.c b/Modules/pyexpat.c
index 21cb04a826..ce65354497 100644
--- a/Modules/pyexpat.c
+++ b/Modules/pyexpat.c
@@ -1900,16 +1900,6 @@ PyDoc_STRVAR(pyexpat_module_documentation,
#define MODULE_INITFUNC PyInit_pyexpat
#endif
-#ifndef PyMODINIT_FUNC
-# ifdef MS_WINDOWS
-# define PyMODINIT_FUNC __declspec(dllexport) void
-# else
-# define PyMODINIT_FUNC void
-# endif
-#endif
-
-PyMODINIT_FUNC MODULE_INITFUNC(void); /* avoid compiler warnings */
-
static struct PyModuleDef pyexpatmodule = {
PyModuleDef_HEAD_INIT,
MODULE_NAME,