[antlr-interest] ANTLR3 C target and Visual Studio 6

Gavin Lambert antlr at mirality.co.nz
Fri Oct 5 02:03:50 PDT 2007


At 00:59 5/10/2007, Rupert Mazzucco wrote:
 >Your fix looks like it will break things for non VC compilers.
 >(Also I have to wonder how many #ifdefs it is worth to support
 >a nearly ten years old compiler.)

Should be easy to fix.  This should work for everybody (at least 
provided the preprocessor short-circuits like it's supposed to):

#if !defined(_MSC_VER) || _MSC_VER >= 1400
#define  ANTLR3_UINT64_LIT(lit)     lit##ULL
#else
#define  ANTLR3_UINT64_LIT(lit)     lit##ui64
#endif // _MSC_VER >= 1400



More information about the antlr-interest mailing list