Skip to content

Commit

Permalink
Merge pull request eclipse-openj9#20054 from JasonFengJ9/jdk11compile
Browse files Browse the repository at this point in the history
Fix JDK11 Windows compilation error
  • Loading branch information
keithc-ca authored Aug 23, 2024
2 parents e85c71f + bc8c0cc commit e81a895
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/j9vm/jvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4085,9 +4085,9 @@ JVM_LoadLibrary(const char *libName, jboolean throwOnFailure)
char *errMsg = errBuf;
int bufSize = sizeof(errBuf);
const char *portMsg =
#if defined(WIN32)
#if defined(WIN32) && (JAVA_SPEC_VERSION >= 17)
!attemptedLoad ? "" :
#endif /* defined(WIN32) */
#endif /* defined(WIN32) && (JAVA_SPEC_VERSION >= 17) */
j9error_last_error_message();
const char *space = ('\0' == *portMsg) ? "" : " ";
bufSize = jio_snprintf(errMsg, bufSize, "Failed to load library (\"%s\")%s%s", libName, space, portMsg);
Expand Down

0 comments on commit e81a895

Please sign in to comment.