So now i'm not sure if we should make use of that backward compability or not.
If this is found to be a proper fix then i'll commit.
Code: Select all
--- tmp/sparseconfig-5819.h 2008-12-24 02:34:17.000000000 +0100
+++ home/technology/openkore/src/auto/XSTools/utils/sparseconfig.h 2008-12-21 07:27:51.000000000 +0100
@@ -33,8 +33,18 @@
// In windows-land, hash<> is called hash_compare<> (from xhash.h)
#define hash hash_compare
#else
+ #ifndef GCC_VERSION
+ #define GCC_VERSION (__GNUC__ * 10000 \
+ + __GNUC_MINOR__ * 100 \
+ + __GNUC_PATCHLEVEL__)
+ #endif
+
/* the location of <hash_fun.h>/<stl_hash_fun.h> */
- #define HASH_FUN_H <ext/hash_fun.h>
+ #if GCC_VERSION < 40300
+ #define HASH_FUN_H <ext/hash_fun.h>
+ #else
+ #define HASH_FUN_H <backward/hash_fun.h>
+ #endif
/* the namespace of hash_map/hash_set */
#define HASH_NAMESPACE __gnu_cxx
#endif
Code: Select all
--- tmp/consoleui-test-0.cpp 2008-12-24 02:49:25.000000000 +0100
+++ home/technology/openkore/src/test/consoleui-test.cpp 2008-12-21 05:53:35.000000000 +0100
@@ -1,3 +1,4 @@
+#include <stdlib.h>
#include "consoleui.h"
#include <stdio.h>
#include <unistd.h>