Merge pull request #41 from alliedmodders/c++11

Enable C++11 on posix (r=dvander).
This commit is contained in:
Nicholas Hastings 2014-06-19 21:20:13 -04:00
commit 210759907d
3 changed files with 7 additions and 2 deletions

View File

@ -171,6 +171,9 @@ class SMConfig(object):
'-msse',
'-m32',
]
cxx.cxxflags += [
'-std=c++11',
]
have_gcc = cxx.vendor == 'gcc'
have_clang = cxx.vendor == 'clang'
@ -188,6 +191,8 @@ class SMConfig(object):
'-fno-threadsafe-statics',
'-Wno-non-virtual-dtor',
'-Wno-overloaded-virtual',
'-Wno-implicit-exception-spec-mismatch',
'-Wno-deprecated-register',
]
if have_gcc:

View File

@ -16,7 +16,7 @@
#define KE_PLATFORM_POSIX
#if defined linux
#if defined __linux__
#define KE_PLATFORM_LINUX
#elif defined __APPLE__
#define KE_PLATFORM_APPLE

View File

@ -71,7 +71,7 @@ ReturnAndVoid(T &t)
#if defined(KE_CXX11)
# define KE_DELETE = delete
# define KE_OVERRIDE = override
# define KE_OVERRIDE override
#else
# define KE_DELETE
# define KE_OVERRIDE