src/hotspot/share/utilities/globalDefinitions_visCPP.hpp
changeset 49177 eebf559c9e0d
parent 49040 079d100b3d0e
child 49392 2956d0ece7a9
equal deleted inserted replaced
49176:f413e471a6ab 49177:eebf559c9e0d
   145 #endif // CHECK_UNHANDLED_OOPS
   145 #endif // CHECK_UNHANDLED_OOPS
   146 #if _MSC_VER >= 1400
   146 #if _MSC_VER >= 1400
   147 #pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE
   147 #pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE
   148 #endif
   148 #endif
   149 
   149 
   150 inline int vsnprintf(char* buf, size_t count, const char* fmt, va_list argptr) {
       
   151   // If number of characters written == count, Windows doesn't write a
       
   152   // terminating NULL, so we do it ourselves.
       
   153   int ret = _vsnprintf(buf, count, fmt, argptr);
       
   154   if (count > 0) buf[count-1] = '\0';
       
   155   return ret;
       
   156 }
       
   157 
       
   158 // Portability macros
   150 // Portability macros
   159 #define PRAGMA_INTERFACE
   151 #define PRAGMA_INTERFACE
   160 #define PRAGMA_IMPLEMENTATION
   152 #define PRAGMA_IMPLEMENTATION
   161 #define PRAGMA_IMPLEMENTATION_(arg)
   153 #define PRAGMA_IMPLEMENTATION_(arg)
   162 #define VALUE_OBJ_CLASS_SPEC    : public _ValueObj
   154 #define VALUE_OBJ_CLASS_SPEC    : public _ValueObj