Skip to content

Commit

Permalink
Fixing compilability under VS 2012
Browse files Browse the repository at this point in the history
  • Loading branch information
ohhmm committed Aug 1, 2013
1 parent cd4afc3 commit 6e9cce1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ else (UNIX)
endif()
endif()

if (NOT (MSVC_VERSION LESS 1700))
add_definitions(/D_ALLOW_KEYWORD_MACROS)
endif()
endif()

if (GAME_DEVICE_SUPPORT)
Expand Down
10 changes: 6 additions & 4 deletions src/lib/common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,12 @@
// we don't want to use NULL since it's old and nasty, so replace any
// usages with nullptr (warning: this could break many things).
// if not c++0x yet, future proof code by allowing use of nullptr
#ifdef nullptr
#define NULL nullptr
#else
#define nullptr NULL
#if !(defined(_MSC_VER) && _MSC_VER >= 1700)
# ifdef nullptr
# define NULL nullptr
# else
# define nullptr NULL
# endif
#endif

// make assert available since we use it a lot
Expand Down
1 change: 0 additions & 1 deletion src/lib/platform/CMSWindowsScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
#include "CArch.h"
#include "CArchMiscWindows.h"
#include <string.h>
#include <pbt.h>

//
// add backwards compatible multihead support (and suppress bogus warning).
Expand Down

0 comments on commit 6e9cce1

Please sign in to comment.