mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
ddee9d560b
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
18 lines
516 B
Diff
18 lines
516 B
Diff
--- antlr-2.7.7/lib/cpp/antlr/CharScanner.hpp 2006-11-01 22:37:17.000000000 +0100
|
|
+++ antlr-2.7.7-patch/lib/cpp/antlr/CharScanner.hpp 2017-02-06 15:04:59.554926371 +0100
|
|
@@ -18,10 +18,13 @@
|
|
#include <cctype>
|
|
#endif
|
|
|
|
-#if ( _MSC_VER == 1200 )
|
|
-// VC6 seems to need this
|
|
+#if ( _MSC_VER == 1200 ) || ( __GNUC__ )
|
|
+// VC6 and GCC seem to need this
|
|
// note that this is not a standard C++ include file.
|
|
# include <stdio.h>
|
|
+#if ( __GNUC__ )
|
|
+#include <strings.h>
|
|
+#endif
|
|
#endif
|
|
|
|
#include <antlr/TokenStream.hpp>
|