diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2013-06-27 15:35:24 -0400 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2013-06-27 16:46:22 -0400 |
commit | 38a13fe227e6b59a49509d4b5ae6618b4c14937a (patch) | |
tree | e81fb31b46ffc1e948c48d647ca7d2bc2467a211 /src/parser | |
parent | e6f4f9fbd3e2e3471f0df46959e3924368f31bdb (diff) |
Remove output.h from public space, to avoid clashes with symbols defined in users' space.
Specifically, output.h was moved to CVC4's "private-library" rules, which means that it's
not installed on users' machines, and public headers should not include it.
Thanks to Alex Horn for raising the issue on the CVC-BUGS mailing list.
Diffstat (limited to 'src/parser')
-rw-r--r-- | src/parser/antlr_input.h | 12 | ||||
-rw-r--r-- | src/parser/antlr_line_buffered_input.cpp | 9 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/parser/antlr_input.h b/src/parser/antlr_input.h index 3b7d53be8..8763e8451 100644 --- a/src/parser/antlr_input.h +++ b/src/parser/antlr_input.h @@ -14,12 +14,21 @@ ** Base for ANTLR parser classes. **/ +#include <antlr3.h> + +// ANTLR3 headers define these in our space :( +// undef them so that we don't get multiple-definition warnings +#undef PACKAGE_BUGREPORT +#undef PACKAGE_NAME +#undef PACKAGE_STRING +#undef PACKAGE_TARNAME +#undef PACKAGE_VERSION + #include "cvc4parser_private.h" #ifndef __CVC4__PARSER__ANTLR_INPUT_H #define __CVC4__PARSER__ANTLR_INPUT_H -#include <antlr3.h> #include <iostream> #include <sstream> #include <stdexcept> @@ -34,6 +43,7 @@ #include "util/bitvector.h" #include "util/integer.h" #include "util/rational.h" +#include "util/output.h" namespace CVC4 { diff --git a/src/parser/antlr_line_buffered_input.cpp b/src/parser/antlr_line_buffered_input.cpp index c2f73d988..a59fb3531 100644 --- a/src/parser/antlr_line_buffered_input.cpp +++ b/src/parser/antlr_line_buffered_input.cpp @@ -16,6 +16,15 @@ **/ #include <antlr3.h> + +// ANTLR3 headers define these in our space :( +// undef them so that we don't get multiple-definition warnings +#undef PACKAGE_BUGREPORT +#undef PACKAGE_NAME +#undef PACKAGE_STRING +#undef PACKAGE_TARNAME +#undef PACKAGE_VERSION + #include <iostream> #include <string> #include <cassert> |