Fix compile error with MSVC 2015
This patch fixes compilation with MSVC 2015. WIN32 is not a preprocessor symbol that is defined by MSVC, but _WIN32 is.pull/1053/head
parent
3e05d13827
commit
b5c7c9c3ac
|
@ -26,7 +26,7 @@ THE SOFTWARE.
|
||||||
|
|
||||||
#include "o3dgcCommon.h"
|
#include "o3dgcCommon.h"
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
/* Thank you, Microsoft, for file WinDef.h with min/max redefinition. */
|
/* Thank you, Microsoft, for file WinDef.h with min/max redefinition. */
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -42,7 +42,7 @@ THE SOFTWARE.
|
||||||
|
|
||||||
namespace o3dgc
|
namespace o3dgc
|
||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
class Timer
|
class Timer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue