Mercurial > hg > truffle
changeset 14224:a7e8ff4a1838
8031199: _MSC_VER is only defined on _WIN32
Reviewed-by: kvn, iveresov
author | twisti |
---|---|
date | Mon, 06 Jan 2014 15:35:20 -0800 |
parents | de6a9e811145 |
children | 16e101c8691f |
files | src/share/vm/adlc/adlc.hpp |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/adlc/adlc.hpp Tue Dec 24 11:48:39 2013 -0800 +++ b/src/share/vm/adlc/adlc.hpp Mon Jan 06 15:35:20 2014 -0800 @@ -38,6 +38,9 @@ #include "stdarg.h" #include <sys/types.h> +/* Make sure that we have the intptr_t and uintptr_t definitions */ +#ifdef _WIN32 + #if _MSC_VER >= 1300 using namespace std; #endif @@ -46,8 +49,6 @@ #define strdup _strdup #endif -/* Make sure that we have the intptr_t and uintptr_t definitions */ -#ifdef _WIN32 #ifndef _INTPTR_T_DEFINED #ifdef _WIN64 typedef __int64 intptr_t; @@ -65,6 +66,7 @@ #endif #define _UINTPTR_T_DEFINED #endif + #endif // _WIN32 #if defined(LINUX) || defined(_ALLBSD_SOURCE)