diff options
author | Marcel Steinbeck <marcel dot steinbeck at googlemail dot com> | 2017-02-07 01:23:03 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-10 07:16:15 +0700 |
commit | ddee9d560b82a37f60f75bcda3a160d0cba705f9 (patch) | |
tree | 5bc1ac60203ee93a1d87c2497cdbb2970a6325b3 /development/antlr2/antlr-2.7.7-gcc-includes.patch | |
parent | d32b96c05310779a8a38f887e51f950b56808969 (diff) | |
download | slackbuilds-ddee9d560b82a37f60f75bcda3a160d0cba705f9.tar.gz |
development/antlr2: Added (parser generator).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/antlr2/antlr-2.7.7-gcc-includes.patch')
-rw-r--r-- | development/antlr2/antlr-2.7.7-gcc-includes.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/development/antlr2/antlr-2.7.7-gcc-includes.patch b/development/antlr2/antlr-2.7.7-gcc-includes.patch new file mode 100644 index 0000000000..aa3a7921b8 --- /dev/null +++ b/development/antlr2/antlr-2.7.7-gcc-includes.patch @@ -0,0 +1,18 @@ +--- 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> |