diff options
author | Akim Demaille <akim@lrde.epita.fr> | 2012-09-27 09:43:49 +0200 |
---|---|---|
committer | Akim Demaille <akim@lrde.epita.fr> | 2012-10-22 12:16:04 +0200 |
commit | 6192d2c6de859990f8e90c128de9733c1315db7a (patch) | |
tree | 211adb3deb1f31769268e7dbf1b89522c30f805f /data | |
parent | 3746fc33c47a8c76232a49d7116a3fba8bfe44c5 (diff) | |
download | bison-6192d2c6de859990f8e90c128de9733c1315db7a.tar.gz |
headers: move CPP guards into YY_*_INCLUDED to avoid collisions
See <http://lists.gnu.org/archive/html/bug-bison/2012-09/msg00016.html>.
* data/c.m4 (b4_cpp_guard): Prepend YY_ and append _INCLUDED.
* tests/headers.at: Adjust.
* NEWS, doc/bison.texi: Document.
Diffstat (limited to 'data')
-rw-r--r-- | data/c.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ m4_define([b4_tocpp], # ------------------ # A valid C macro name to use as a CPP header guard for FILE. m4_define([b4_cpp_guard], -[b4_tocpp(m4_defn([b4_prefix])/[$1])]) +[[YY_]b4_tocpp(m4_defn([b4_prefix])/[$1])[_INCLUDED]]) # b4_cpp_guard_open(FILE) |