resolve.cc (ncode): Use _Jv_platform_ffi_abi.
* resolve.cc (ncode): Use _Jv_platform_ffi_abi. Include platform.h. * java/lang/natRuntime.cc (insertSystemProperties): Use _Jv_platform_path_separator. (nativeGetLibname): Use _Jv_platform_file_separator. (_load): Use _Jv_platform_onload_names. (onload_names): New global. * include/win32.h (_Jv_platform_file_separator): New define. (_Jv_platform_path_separator): Likewise. (_Jv_platform_onload_names): Likewise. (_Jv_platform_ffi_abi): Likewise. * include/posix.h (_Jv_platform_file_separator): New define. (_Jv_platform_path_separator): Likewise. (_Jv_platform_onload_names): Likewise. (_Jv_platform_ffi_abi): Likewise. From-SVN: r64461
This commit is contained in:
parent
01cca2d84d
commit
2b7f1f8f41
5 changed files with 63 additions and 32 deletions
|
@ -24,6 +24,22 @@ details. */
|
|||
#define _Jv_platform_solib_prefix ""
|
||||
#define _Jv_platform_solib_suffix ".dll"
|
||||
|
||||
// Separator for file name components.
|
||||
#define _Jv_platform_file_separator ((jchar) '\\')
|
||||
// Separator for path components.
|
||||
#define _Jv_platform_path_separator ((jchar) ';')
|
||||
|
||||
// List of names for `JNI_OnLoad'. On Win32, JNI_OnLoad is an
|
||||
// "stdcall" function taking two pointers (8 bytes) as arguments. It
|
||||
// could also have been exported as "JNI_OnLoad@8" (MinGW) or
|
||||
// "_JNI_OnLoad@8" (MSVC).
|
||||
#define _Jv_platform_onload_names \
|
||||
{ "JNI_OnLoad", "JNI_OnLoad@8", "_JNI_OnLoad@8", NULL }
|
||||
|
||||
// Type of libffi ABI used by JNICALL methods. NOTE: This must agree
|
||||
// with the JNICALL definition in jni.h
|
||||
#define _Jv_platform_ffi_abi FFI_STDCALL
|
||||
|
||||
#ifndef DISABLE_JAVA_NET
|
||||
|
||||
// these errors cannot occur on Win32
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue