[Glide64] fixed a pre-processor macro language collision

This commit is contained in:
unknown 2015-10-27 22:26:28 -04:00
parent 88852c3a4a
commit 3f15e07562
2 changed files with 11 additions and 3 deletions

View File

@ -37,9 +37,9 @@
//
//****************************************************************
#include <Common/std string.h>
#include "Gfx_1.3.h"
#include "Version.h"
#include <Common/std string.h>
#include <Settings/Settings.h>
#include <wx/fileconf.h>

View File

@ -830,12 +830,20 @@ extern const char *CIStatus[];
#define FBL_D_1 2
#define FBL_D_0 3
/*
* taken straight from MSVC <windef.h> in case of other compilers
*
* Careful! These macros can sabotage std::max and std::min from <vector>.
* The only solution is to include <vector> first, before <windef.h> or
* before defining the below macros (or just don't use <windows.h>).
*/
#ifndef max
#define max(a,b) (((a) > (b)) ? (a) : (b))
#define max(a, b) (((a) > (b)) ? (a) : (b))
#endif
#ifndef min
#define min(a,b) (((a) < (b)) ? (a) : (b))
#define min(a, b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef TRUE
#define TRUE 1
#endif