src/share/vm/utilities/globalDefinitions_visCPP.hpp

changeset 9478
f3108e56b502
parent 7001
b6a8cc1e0d92
child 9572
624a0741915c
child 9858
b985cbb00e68
equal deleted inserted replaced
9477:bbd1da3f538f 9478:f3108e56b502
1 /* 1 /*
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
185 #endif // CHECK_UNHANDLED_OOPS 185 #endif // CHECK_UNHANDLED_OOPS
186 #if _MSC_VER >= 1400 186 #if _MSC_VER >= 1400
187 #pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE 187 #pragma warning( disable : 4996 ) // unsafe string functions. Same as define _CRT_SECURE_NO_WARNINGS/_CRT_SECURE_NO_DEPRICATE
188 #endif 188 #endif
189 189
190 inline int vsnprintf(char* buf, size_t count, const char* fmt, va_list argptr) {
191 // If number of characters written == count, Windows doesn't write a
192 // terminating NULL, so we do it ourselves.
193 int ret = _vsnprintf(buf, count, fmt, argptr);
194 if (count > 0) buf[count-1] = '\0';
195 return ret;
196 }
197
198 // Portability macros 190 // Portability macros
199 #define PRAGMA_INTERFACE 191 #define PRAGMA_INTERFACE
200 #define PRAGMA_IMPLEMENTATION 192 #define PRAGMA_IMPLEMENTATION
201 #define PRAGMA_IMPLEMENTATION_(arg) 193 #define PRAGMA_IMPLEMENTATION_(arg)
202 #define VALUE_OBJ_CLASS_SPEC : public _ValueObj 194 #define VALUE_OBJ_CLASS_SPEC : public _ValueObj

mercurial