antlr-2.7.7-gcc-includes.patch 516 B

12345678910111213141516171819
  1. --- antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp 2006-11-01 22:37:17.000000000 +0100
  2. +++ antlr-2.7.7-patch/lib/cpp/antlr/CharScanner.hpp 2017-02-06 15:04:59.554926371 +0100
  3. @@ -18,10 +18,13 @@
  4. #include <cctype>
  5. #endif
  6. -#if ( _MSC_VER == 1200 )
  7. -// VC6 seems to need this
  8. +#if ( _MSC_VER == 1200 ) || ( __GNUC__ )
  9. +// VC6 and GCC seem to need this
  10. // note that this is not a standard C++ include file.
  11. # include <stdio.h>
  12. +#if ( __GNUC__ )
  13. +#include <strings.h>
  14. +#endif
  15. #endif
  16. #include <antlr/TokenStream.hpp>