Merge pull request #41 from alliedmodders/c++11
Enable C++11 on posix (r=dvander).
This commit is contained in:
commit
210759907d
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user