8150079: MSVC prior to VS 2013 doesn't know the 'va_copy' macro
Reviewed-by: dholmes
This commit is contained in:
parent
1153ecb06f
commit
a5c5a3b609
@ -930,13 +930,7 @@ class JNI_ArgumentPusherVaArg : public JNI_ArgumentPusher {
|
|||||||
_arguments->push_oop(Handle((oop *)l, false)); }
|
_arguments->push_oop(Handle((oop *)l, false)); }
|
||||||
|
|
||||||
inline void set_ap(va_list rap) {
|
inline void set_ap(va_list rap) {
|
||||||
#ifdef va_copy
|
|
||||||
va_copy(_ap, rap);
|
va_copy(_ap, rap);
|
||||||
#elif defined (__va_copy)
|
|
||||||
__va_copy(_ap, rap);
|
|
||||||
#else
|
|
||||||
_ap = rap;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -174,6 +174,8 @@ const jlong max_jlong = CONST64(0x7fffffffffffffff);
|
|||||||
#if _MSC_VER < 1800
|
#if _MSC_VER < 1800
|
||||||
// Visual Studio 2013 introduced strtoull(); before, one has to use _strtoui64() instead.
|
// Visual Studio 2013 introduced strtoull(); before, one has to use _strtoui64() instead.
|
||||||
#define strtoull _strtoui64
|
#define strtoull _strtoui64
|
||||||
|
// Visual Studio prior to 2013 had no va_copy, but could safely copy va_list by assignement
|
||||||
|
#define va_copy(dest, src) dest = src
|
||||||
// Fixes some wrong warnings about 'this' : used in base member initializer list
|
// Fixes some wrong warnings about 'this' : used in base member initializer list
|
||||||
#pragma warning( disable : 4355 )
|
#pragma warning( disable : 4355 )
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user