< prev index next >

src/hotspot/share/adlc/adlc.hpp

Print this page
8248238: Adding Windows support to OpenJDK on AArch64

Summary: Adding Windows support for AArch64

Contributed-by: Ludovic Henry <luhenry@microsoft.com>, Monica Beckwith <monica.beckwith@microsoft.com>
Reviewed-by:


  22  *
  23  */
  24 
  25 #ifndef SHARE_ADLC_ADLC_HPP
  26 #define SHARE_ADLC_ADLC_HPP
  27 
  28 //
  29 // Standard include file for ADLC parser
  30 //
  31 
  32 // standard library constants
  33 #include <iostream>
  34 
  35 #include <stdio.h>
  36 #include <stdlib.h>
  37 #include <string.h>
  38 #include <ctype.h>
  39 #include <stdarg.h>
  40 #include <sys/types.h>
  41 
  42 /* Make sure that we have the intptr_t and uintptr_t definitions */
  43 #ifdef _WIN32
  44 




  45 #if _MSC_VER >= 1300
  46 using namespace std;
  47 #endif
  48 
  49 #if _MSC_VER >= 1400
  50 #define strdup _strdup
  51 #endif
  52 
  53 #if _MSC_VER < 1900
  54 #define snprintf _snprintf
  55 #endif
  56 
  57 #ifndef _INTPTR_T_DEFINED
  58 #ifdef _WIN64
  59 typedef __int64 intptr_t;
  60 #else
  61 typedef int intptr_t;
  62 #endif
  63 #define _INTPTR_T_DEFINED
  64 #endif




  22  *
  23  */
  24 
  25 #ifndef SHARE_ADLC_ADLC_HPP
  26 #define SHARE_ADLC_ADLC_HPP
  27 
  28 //
  29 // Standard include file for ADLC parser
  30 //
  31 
  32 // standard library constants
  33 #include <iostream>
  34 
  35 #include <stdio.h>
  36 #include <stdlib.h>
  37 #include <string.h>
  38 #include <ctype.h>
  39 #include <stdarg.h>
  40 #include <sys/types.h>
  41 

  42 #ifdef _WIN32
  43 
  44 /* Make sure that we don't define min/max */
  45 #define NOMINMAX
  46 
  47 /* Make sure that we have the intptr_t and uintptr_t definitions */
  48 #if _MSC_VER >= 1300
  49 using namespace std;
  50 #endif
  51 
  52 #if _MSC_VER >= 1400
  53 #define strdup _strdup
  54 #endif
  55 
  56 #if _MSC_VER < 1900
  57 #define snprintf _snprintf
  58 #endif
  59 
  60 #ifndef _INTPTR_T_DEFINED
  61 #ifdef _WIN64
  62 typedef __int64 intptr_t;
  63 #else
  64 typedef int intptr_t;
  65 #endif
  66 #define _INTPTR_T_DEFINED
  67 #endif


< prev index next >