[Glide64] fixed a pre-processor macro language collision
This commit is contained in:
parent
88852c3a4a
commit
3f15e07562
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue