[antlr-interest] Re: ANTLR 2.7.2a1 alpha/test release out!
Ric Klaren
klaren at cs.utwente.nl
Fri Jan 4 05:01:15 PST 2002
On Sat, Dec 29, 2001 at 10:33:09PM +0100, Michael Schmitt wrote:
> I had a quick glance at 2.7.2a1 and what I can say for the moment is
> that the C++ sources cannot be compiled with gcc-2.95.3/Linux and
> options "-pedantic -ansi".
Fixed in repository. Here's a diff:
==== //depot/code/org.antlr/main/main/lib/cpp/antlr/config.hpp#9 (ktext) ====
@@ -223,10 +223,15 @@
# define ANTLR_USING_NAMESPACE(_x_)
# undef ANTLR_CXX_SUPPORTS_NAMESPACE
# endif
-# if (__GNUC_MINOR > 8 && __GNUC_MINOR__ <= 95 )
+# if (__GNUC_MINOR__ > 8 && __GNUC_MINOR__ <= 95 )
# undef ANTLR_IOS_BASE
# define ANTLR_IOS_BASE ios
# undef ANTLR_CCTYPE_NEEDS_STD
+// compiling with -ansi ?
+# ifdef __STRICT_ANSI__
+# undef ANTLR_REALLY_NO_STRCASECMP
+# define ANTLR_REALLY_NO_STRCASECMP
+# endif
# else
// experimental .96 .97 branches..
# undef ANTLR_CCTYPE_NEEDS_STD
Ric
--
-----+++++*****************************************************+++++++++-------
---- Ric Klaren ----- klaren at cs.utwente.nl ----- +31 53 4893722 ----
-----+++++*****************************************************+++++++++-------
Wit is cultured insolence. --- Aristotle
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list