8319958: test/jdk/java/io/File/libGetXSpace.c does not compile on Windows 32-bit

Reviewed-by: bpb, shade
This commit is contained in:
Stewart X Addison 2023-11-14 17:06:03 +00:00 committed by Aleksey Shipilev
parent 58af9aeeb0
commit 6a75c2406b

View File

@ -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");