8031199: _MSC_VER is only defined on _WIN32
Reviewed-by: kvn, iveresov
This commit is contained in:
parent
a0da47fd66
commit
618ee38356
@ -38,6 +38,9 @@
|
|||||||
#include "stdarg.h"
|
#include "stdarg.h"
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
/* Make sure that we have the intptr_t and uintptr_t definitions */
|
||||||
|
#ifdef _WIN32
|
||||||
|
|
||||||
#if _MSC_VER >= 1300
|
#if _MSC_VER >= 1300
|
||||||
using namespace std;
|
using namespace std;
|
||||||
#endif
|
#endif
|
||||||
@ -46,8 +49,6 @@ using namespace std;
|
|||||||
#define strdup _strdup
|
#define strdup _strdup
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Make sure that we have the intptr_t and uintptr_t definitions */
|
|
||||||
#ifdef _WIN32
|
|
||||||
#ifndef _INTPTR_T_DEFINED
|
#ifndef _INTPTR_T_DEFINED
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
typedef __int64 intptr_t;
|
typedef __int64 intptr_t;
|
||||||
@ -65,6 +66,7 @@ typedef unsigned int uintptr_t;
|
|||||||
#endif
|
#endif
|
||||||
#define _UINTPTR_T_DEFINED
|
#define _UINTPTR_T_DEFINED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
||||||
#if defined(LINUX) || defined(_ALLBSD_SOURCE)
|
#if defined(LINUX) || defined(_ALLBSD_SOURCE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user