< prev index next >

src/share/vm/utilities/globalDefinitions_visCPP.hpp

Print this page
rev 9258 : [mq]: erik-diff


 154 #define  CONST64(x) (x ##  i64)
 155 #define UCONST64(x) (x ## ui64)
 156 
 157 const jlong min_jlong = (jlong)UCONST64(0x8000000000000000);
 158 const jlong max_jlong =         CONST64(0x7fffffffffffffff);
 159 
 160 //----------------------------------------------------------------------------------------------------
 161 // Miscellaneous
 162 
 163 // Visual Studio 2005 deprecates POSIX names - use ISO C++ names instead
 164 #if _MSC_VER >= 1400
 165 #define open _open
 166 #define close _close
 167 #define read  _read
 168 #define write _write
 169 #define lseek _lseek
 170 #define unlink _unlink
 171 #define strdup _strdup
 172 #endif
 173 
 174 // Visual Studio 2013 introduced strtoull(); before, one has to use _strtoui64() instead.
 175 #if _MSC_VER < 1800

 176 #define strtoull _strtoui64


 177 #endif
 178 
 179 
 180 #pragma warning( disable : 4100 ) // unreferenced formal parameter
 181 #pragma warning( disable : 4127 ) // conditional expression is constant
 182 #pragma warning( disable : 4514 ) // unreferenced inline function has been removed
 183 #pragma warning( disable : 4244 ) // possible loss of data
 184 #pragma warning( disable : 4512 ) // assignment operator could not be generated
 185 #pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union (needed in windows.h)
 186 #pragma warning( disable : 4511 ) // copy constructor could not be generated
 187 #pragma warning( disable : 4291 ) // no matching operator delete found; memory will not be freed if initialization thows an exception
 188 #ifdef CHECK_UNHANDLED_OOPS
 189 #pragma warning( disable : 4521 ) // class has multiple copy ctors of a single type
 190 #pragma warning( disable : 4522 ) // class has multiple assignment operators of a single type
 191 #endif // CHECK_UNHANDLED_OOPS
 192 #if _MSC_VER >= 1400
 193 #pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE
 194 #endif
 195 
 196 inline int vsnprintf(char* buf, size_t count, const char* fmt, va_list argptr) {




 154 #define  CONST64(x) (x ##  i64)
 155 #define UCONST64(x) (x ## ui64)
 156 
 157 const jlong min_jlong = (jlong)UCONST64(0x8000000000000000);
 158 const jlong max_jlong =         CONST64(0x7fffffffffffffff);
 159 
 160 //----------------------------------------------------------------------------------------------------
 161 // Miscellaneous
 162 
 163 // Visual Studio 2005 deprecates POSIX names - use ISO C++ names instead
 164 #if _MSC_VER >= 1400
 165 #define open _open
 166 #define close _close
 167 #define read  _read
 168 #define write _write
 169 #define lseek _lseek
 170 #define unlink _unlink
 171 #define strdup _strdup
 172 #endif
 173 

 174 #if _MSC_VER < 1800
 175 // Visual Studio 2013 introduced strtoull(); before, one has to use _strtoui64() instead.
 176 #define strtoull _strtoui64
 177 // Fixes some wrong warnings about 'this' : used in base member initializer list
 178 #pragma warning( disable : 4355 )
 179 #endif
 180 
 181 
 182 #pragma warning( disable : 4100 ) // unreferenced formal parameter
 183 #pragma warning( disable : 4127 ) // conditional expression is constant
 184 #pragma warning( disable : 4514 ) // unreferenced inline function has been removed
 185 #pragma warning( disable : 4244 ) // possible loss of data
 186 #pragma warning( disable : 4512 ) // assignment operator could not be generated
 187 #pragma warning( disable : 4201 ) // nonstandard extension used : nameless struct/union (needed in windows.h)
 188 #pragma warning( disable : 4511 ) // copy constructor could not be generated
 189 #pragma warning( disable : 4291 ) // no matching operator delete found; memory will not be freed if initialization thows an exception
 190 #ifdef CHECK_UNHANDLED_OOPS
 191 #pragma warning( disable : 4521 ) // class has multiple copy ctors of a single type
 192 #pragma warning( disable : 4522 ) // class has multiple assignment operators of a single type
 193 #endif // CHECK_UNHANDLED_OOPS
 194 #if _MSC_VER >= 1400
 195 #pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE
 196 #endif
 197 
 198 inline int vsnprintf(char* buf, size_t count, const char* fmt, va_list argptr) {


< prev index next >