Skip to content

Commit 929b4e9

Browse files
committed
fix: _WIN32 macro
1 parent 597e82e commit 929b4e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

native/openjdkvm/openjdkvm_hook_impl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ static bool InitOpenJdkVmHookInfoLocked(JNIEnv* env, std::string& errorMsg) {
191191
std::function<void*(std::string_view)> fnGetSymbolAddress;
192192
fnGetSymbolAddress = [libjvmHandle](std::string_view name) -> void* {
193193
void* addr;
194-
#ifdef __WIN32
194+
#ifdef _WIN32
195195
addr = GetProcAddress(static_cast<HMODULE>(libjvmHandle), std::string(name).c_str());
196196
#else
197197
addr = dlsym(libjvmHandle, std::string(name).c_str());

0 commit comments

Comments
 (0)