closes bpo-34646: Remove PyAPI_* macros from declarations. (GH-9218)

diff --git a/Parser/printgrammar.c b/Parser/printgrammar.c
index 7311e55..1a8b0e1 100644
--- a/Parser/printgrammar.c
+++ b/Parser/printgrammar.c
@@ -18,7 +18,7 @@
     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");
+    fprintf(fp, "grammar _PyParser_Grammar;\n");
     printdfas(g, fp);
     printlabels(g, fp);
     fprintf(fp, "grammar _PyParser_Grammar = {\n");