sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Robert Figura (319dc920a62c8d03ab856a65c17b45321e3ca385)
- From: Robert Figura <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Robert Figura (319dc920a62c8d03ab856a65c17b45321e3ca385)
- Date: Sun, 19 Jun 2011 16:30:56 -0500
GIT changes to master grimoire by Robert Figura <template AT sourcemage.org>:
java/antlr/HISTORY | 3 +++
java/antlr/PRE_BUILD | 8 ++------
java/antlr/patch-g++-4.4.3 | 17 +++++++++++++++++
3 files changed, 22 insertions(+), 6 deletions(-)
New commits:
commit 319dc920a62c8d03ab856a65c17b45321e3ca385
Author: Robert Figura <template AT sourcemage.org>
Commit: Robert Figura <template AT sourcemage.org>
antlr: PRE_BUILD: converted C++ fix to patch, extended fix
diff --git a/java/antlr/HISTORY b/java/antlr/HISTORY
index ee23be1..df6bf48 100644
--- a/java/antlr/HISTORY
+++ b/java/antlr/HISTORY
@@ -1,3 +1,6 @@
+2011-06-19 Robert Figura <template AT sourcemage.org>
+ * PRE_BUILD: converted C++ fix to patch, extended fix
+
2008-04-25 Pol Vinogradov <vin.public AT gmail.com>
* PRE_BUILD: added to fix compiling of C++ library
diff --git a/java/antlr/PRE_BUILD b/java/antlr/PRE_BUILD
index 5760871..0e349f3 100755
--- a/java/antlr/PRE_BUILD
+++ b/java/antlr/PRE_BUILD
@@ -1,7 +1,3 @@
default_pre_build &&
-cd ${SOURCE_DIRECTORY} &&
-
-if is_depends_enabled $SPELL g++; then
- sedit "s:#include <antlr/TokenStream.hpp>:#include <strings.h>\n\n#include
<antlr/TokenStream.hpp>:" \
-lib/cpp/antlr/CharScanner.hpp
-fi
+cd ${SOURCE_DIRECTORY} &&
+patch -p0 < ${SPELL_DIRECTORY}/patch-g++-4.4.3
diff --git a/java/antlr/patch-g++-4.4.3 b/java/antlr/patch-g++-4.4.3
new file mode 100644
index 0000000..c9c4101
--- /dev/null
+++ b/java/antlr/patch-g++-4.4.3
@@ -0,0 +1,17 @@
+--- lib/cpp/antlr/CharScanner.hpp.bak 2006-11-01 22:37:17.000000000 +0100
++++ lib/cpp/antlr/CharScanner.hpp 2011-06-19 23:08:59.000000000 +0200
+@@ -18,11 +18,9 @@
+ #include <cctype>
+ #endif
+
+-#if ( _MSC_VER == 1200 )
+-// VC6 seems to need this
+-// note that this is not a standard C++ include file.
+-# include <stdio.h>
+-#endif
++#include <cstdio>
++
++#include <strings.h>
+
+ #include <antlr/TokenStream.hpp>
+ #include <antlr/RecognitionException.hpp>
- [SM-Commit] GIT changes to master grimoire by Robert Figura (319dc920a62c8d03ab856a65c17b45321e3ca385), Robert Figura, 06/19/2011
Archive powered by MHonArc 2.6.24.