8319958: test/jdk/java/io/File/libGetXSpace.c does not compile on Windows 32-bit
Reviewed-by: bpb, shade
This commit is contained in:
parent
58af9aeeb0
commit
6a75c2406b
@ -23,7 +23,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "jni.h"
|
||||
#include "jni_util.h"
|
||||
#ifdef _WIN64
|
||||
#ifdef WINDOWS
|
||||
#include <windows.h>
|
||||
#include <fileapi.h>
|
||||
#include <winerror.h>
|
||||
@ -42,7 +42,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef _WIN64
|
||||
#ifdef WINDOWS
|
||||
jboolean initialized = JNI_FALSE;
|
||||
BOOL(WINAPI * pfnGetDiskSpaceInformation)(LPCWSTR, LPVOID) = NULL;
|
||||
#endif
|
||||
@ -67,7 +67,7 @@ Java_GetXSpace_getSpace0
|
||||
return JNI_FALSE;
|
||||
}
|
||||
|
||||
#ifdef _WIN64
|
||||
#ifdef WINDOWS
|
||||
if (initialized == JNI_FALSE) {
|
||||
initialized = JNI_TRUE;
|
||||
HMODULE hmod = GetModuleHandleW(L"kernel32");
|
||||
|
Loading…
x
Reference in New Issue
Block a user