--- asc-2.0.1.0/source/ASCStringHelpers.h 2007-07-30 20:56:41.000000000 +0200
+++ asc-2.0.1.0.new/source/ASCStringHelpers.h 2008-01-12 13:34:46.000000000 +0100
@@ -7,6 +7,7 @@
#include <cstdio>
#include <memory>
#include <string>
+#include <cstring>
#include <wchar.h>
#include <stdio.h>
#include <ctype.h>
@@ -205,9 +206,9 @@
assert ( pS != NULL );
#ifdef ASC_UNICODE
- return ::wcslen ( pS );
+ return wcslen ( pS );
#else
- return ::strlen ( pS );
+ return strlen ( pS );
#endif
}
@@ -231,9 +232,9 @@
assert ( pDest != NULL );
#ifdef ASC_UNICODE
- return ::wcscpy ( pDest, pSrc );
+ return wcscpy ( pDest, pSrc );
#else
- return ::strcpy ( pDest, pSrc );
+ return strcpy ( pDest, pSrc );
#endif
}
@@ -352,9 +353,9 @@
#ifndef _UNIX_
#ifdef ASC_UNICODE
- return ::wcsicmp ( pS1, pS2 );
+ return wcsicmp ( pS1, pS2 );
#else
- return ::stricmp ( pS1, pS2 );
+ return stricmp ( pS1, pS2 );
#endif
#else // _UNIX_
@@ -373,9 +374,9 @@
_Strlwr ( l_pS1 );
_Strlwr ( l_pS2 );
- return ::wcscmp ( l_pS1, l_pS2 );
+ return wcscmp ( l_pS1, l_pS2 );
#else
- return ::strcasecmp ( pS1, pS2 );
+ return strcasecmp ( pS1, pS2 );
#endif
#endif // _UNIX_
--- asc-2.0.1.0/source/dialogs/exchangegraphics.cpp 2007-04-12 22:53:24.000000000 +0200
+++ asc-2.0.1.0.new/source/dialogs/exchangegraphics.cpp 2008-01-12 13:37:22.000000000 +0100
@@ -15,6 +15,7 @@
* *
***************************************************************************/
+#include <limits.h> /* needed by boost/regex.hpp when compiling with gcc4.3 */
#include <boost/regex.hpp>
#include "../paradialog.h"
--- asc-2.0.1.0/source/fieldimageloader.cpp 2007-10-10 21:39:28.000000000 +0200
+++ asc-2.0.1.0.new/source/fieldimageloader.cpp 2008-01-12 13:43:31.000000000 +0100
@@ -19,6 +19,7 @@
#include <algorithm>
#include <iostream>
#include <SDL_image.h>
+#include <limits.h> /* needed by boost/regex.hpp when compiling with gcc4.3 */
#include <boost/regex.hpp>
#include "global.h"
--- asc-2.0.1.0/source/sdl/sound.cpp 2007-04-13 18:16:09.000000000 +0200
+++ asc-2.0.1.0.new/source/sdl/sound.cpp 2008-01-12 12:25:48.000000000 +0100
@@ -8,6 +8,7 @@
***************************************************************************/
+#include <limits.h> /* needed by boost/regex.hpp when compiling with gcc4.3 */
#include <boost/regex.hpp>
#include <cstring>
--- asc-2.0.1.0/source/sg.cpp 2007-10-14 14:53:05.000000000 +0200
+++ asc-2.0.1.0.new/source/sg.cpp 2008-01-12 13:38:40.000000000 +0100
@@ -77,6 +77,7 @@
#include <algorithm>
#include <memory>
+#include <limits.h> /* needed by boost/regex.hpp when compiling with gcc4.3 */
#include <boost/regex.hpp>
#include "paradialog.h"
--- asc-2.0.1.0/source/sgstream.cpp 2007-10-19 20:29:19.000000000 +0200
+++ asc-2.0.1.0.new/source/sgstream.cpp 2008-01-12 13:38:39.000000000 +0100
@@ -36,6 +36,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fstream>
+#include <limits.h> /* needed by boost/regex.hpp when compiling with gcc4.3 */
#include <boost/regex.hpp>
#include "global.h"
--- asc-2.0.1.0/source/textfile_evaluation.cpp 2007-07-08 21:59:47.000000000 +0200
+++ asc-2.0.1.0.new/source/textfile_evaluation.cpp 2008-01-12 13:38:40.000000000 +0100
@@ -36,6 +36,7 @@
#include "Windows.h"
#endif
+#include <limits.h> /* needed by boost/regex.hpp when compiling with gcc4.3 */
#include <boost/regex.hpp>
--- asc-2.0.1.0/source/tools/makegfx.cpp 2007-07-08 17:25:21.000000000 +0200
+++ asc-2.0.1.0.new/source/tools/makegfx.cpp 2008-01-12 13:38:41.000000000 +0100
@@ -10,6 +10,7 @@
#include <SDL_image.h>
#include <SDL.h>
+#include <limits.h> /* needed by boost/regex.hpp when compiling with gcc4.3 */
#include <boost/regex.hpp>
#include "../basegfx.h"
--- asc-2.0.1.0/source/widgets/textrenderer-addons.cpp 2007-04-13 18:16:18.000000000 +0200
+++ asc-2.0.1.0.new/source/widgets/textrenderer-addons.cpp 2008-01-12 13:38:42.000000000 +0100
@@ -17,6 +17,7 @@
+#include <limits.h> /* needed by boost/regex.hpp when compiling with gcc4.3 */
#include <boost/regex.hpp>
#include <pglabel.h>
#include <pgimage.h>
--- asc-2.0.1.0/source/widgets/textrenderer.cpp 2007-04-13 18:16:18.000000000 +0200
+++ asc-2.0.1.0.new/source/widgets/textrenderer.cpp 2008-01-12 13:38:41.000000000 +0100
@@ -17,6 +17,7 @@
+#include <limits.h> /* needed by boost/regex.hpp when compiling with gcc4.3 */
#include <boost/regex.hpp>
#include <pglabel.h>
#include <pgimage.h>