summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_getopt.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/internal/pycore_getopt.h')
-rw-r--r--Include/internal/pycore_getopt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_getopt.h b/Include/internal/pycore_getopt.h
index 8ef2ada..e6f4654 100644
--- a/Include/internal/pycore_getopt.h
+++ b/Include/internal/pycore_getopt.h
@@ -1,6 +1,10 @@
#ifndef Py_INTERNAL_PYGETOPT_H
#define Py_INTERNAL_PYGETOPT_H
+#if !defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_BUILTIN)
+# error "this header requires Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN define"
+#endif
+
extern int _PyOS_opterr;
extern int _PyOS_optind;
extern wchar_t *_PyOS_optarg;