summaryrefslogtreecommitdiffstats
path: root/Parser/pgen.h
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/pgen.h')
-rw-r--r--Parser/pgen.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Parser/pgen.h b/Parser/pgen.h
index 948f5a5..872a3fa 100644
--- a/Parser/pgen.h
+++ b/Parser/pgen.h
@@ -1,3 +1,9 @@
+#ifndef Py_PGEN_H
+#define Py_PGEN_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/***********************************************************
Copyright 1991, 1992, 1993 by Stichting Mathematisch Centrum,
Amsterdam, The Netherlands.
@@ -30,3 +36,8 @@ extern grammar *meta_grammar PROTO((void));
struct _node;
extern grammar *pgen PROTO((struct _node *));
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* !Py_PGEN_H */