summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2009-01-11 09:26:54 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2009-01-11 09:26:54 (GMT)
commitb3b7d859b3c282ee3b573899ba831852642bb18d (patch)
tree155845efc1cba430d17027d4a2f1a303582d92a0 /Parser
parent14aa4599ed83e527bef45c165ded69753993d6dd (diff)
downloadcpython-b3b7d859b3c282ee3b573899ba831852642bb18d.zip
cpython-b3b7d859b3c282ee3b573899ba831852642bb18d.tar.gz
cpython-b3b7d859b3c282ee3b573899ba831852642bb18d.tar.bz2
Issue #4279: Fix build of parsermodule under Cygwin.
Diffstat (limited to 'Parser')
-rw-r--r--Parser/printgrammar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/printgrammar.c b/Parser/printgrammar.c
index ec8f4da..ae180e1 100644
--- a/Parser/printgrammar.c
+++ b/Parser/printgrammar.c
@@ -16,6 +16,7 @@ printgrammar(grammar *g, FILE *fp)
fprintf(fp, "/* Generated by Parser/pgen */\n\n");
fprintf(fp, "#include \"pgenheaders.h\"\n");
fprintf(fp, "#include \"grammar.h\"\n");
+ fprintf(fp, "PyAPI_DATA(grammar) _PyParser_Grammar;\n");
printdfas(g, fp);
printlabels(g, fp);
fprintf(fp, "grammar _PyParser_Grammar = {\n");