Hacked scons scripts and got it building on Ubuntu with clang.
Minor changes to support building on recent clang Addition of some headers for non-compiling files
This commit is contained in:
@@ -23,4 +23,4 @@ elif str(platform) == "win32":
|
||||
|
||||
tools_obj = env.StaticLibrary("#build/lib/tools", tools)
|
||||
|
||||
Return("tools_obj")
|
||||
Return("tools_obj")
|
||||
|
@@ -15,7 +15,7 @@
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
#include <GL/GL.h>
|
||||
#include <GL/gl.h>
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
|
@@ -12,6 +12,7 @@
|
||||
#include <cctype>
|
||||
#include <iterator>
|
||||
#include <numeric>
|
||||
#include <cstring>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
@@ -36,10 +36,8 @@ void erase_if(ContainerT& items, const PredicateT& predicate) {
|
||||
};
|
||||
|
||||
// Case-insensitive string comparison seems to be semi-standard, but with different names.
|
||||
#if defined(__APPLE__)
|
||||
#define strnicmp strncasecmp
|
||||
#elif defined(_MSC_VER)
|
||||
#if defined(_MSC_VER)
|
||||
#define strnicmp _strnicmp
|
||||
#else
|
||||
#error Missing strnicmp / strncasecmp
|
||||
#define strnicmp strncasecmp
|
||||
#endif
|
||||
|
@@ -10,6 +10,7 @@
|
||||
#include <algorithm>
|
||||
#include <cstdio>
|
||||
#include <ctime>
|
||||
#include <cstring>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
// For some bizarre reason, Visual Studio doesn't declare snprintf in <cstdio>
|
||||
|
Reference in New Issue
Block a user