aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include/pygetopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/pygetopt.h')
-rw-r--r--Include/pygetopt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/pygetopt.h b/Include/pygetopt.h
index 19e3fd1d301..4de8c0045d9 100644
--- a/Include/pygetopt.h
+++ b/Include/pygetopt.h
@@ -5,9 +5,11 @@
extern "C" {
#endif
+#ifndef Py_LIMITED_API
PyAPI_DATA(int) _PyOS_opterr;
PyAPI_DATA(int) _PyOS_optind;
PyAPI_DATA(wchar_t *) _PyOS_optarg;
+#endif
PyAPI_FUNC(int) _PyOS_GetOpt(int argc, wchar_t **argv, wchar_t *optstring);