Skip to content

Commit

Permalink
use "#ifdef WINDOWS" instead of "#if _WIN32 || _WIN64" for xrCore
Browse files Browse the repository at this point in the history
  • Loading branch information
q4a committed May 18, 2018
1 parent 27b5b46 commit 9ced874
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/xrCore/LocatorAPI.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#pragma once

#ifdef WINDOWS
#pragma warning(push)
#pragma warning(disable : 4995)

#if _WIN32 || _WIN64
#include <io.h>
#pragma warning(pop)
#endif

#pragma warning(pop)
#include "Common/Util.hpp"
#include "LocatorAPI_defs.h"
//#include "xrCore/Threading/Lock.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/xrCore/xrCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
#endif // frequently in release code due to large amount of VERIFY

// Our headers
#if _WIN32||_WIN64
#ifdef WINDOWS
#include "xrDebug.h"
#endif
//#include "vector.h"
Expand Down
2 changes: 1 addition & 1 deletion src/xrCore/xrDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include <string>

#if _WIN32 || _WIN64
#ifdef WINDOWS
#pragma warning(push)
#pragma warning(disable : 4091) /// 'typedef ': ignored on left of '' when no variable is declared
#include <DbgHelp.h>
Expand Down

0 comments on commit 9ced874

Please sign in to comment.