Skip to content
Permalink
Browse files
8223188: Removed unnecessary #ifdef __cplusplus from .cpp sources
Reviewed-by: herrick, almatvee, iklam
  • Loading branch information
Alexey Semenyuk committed Feb 9, 2021
1 parent 05c6009 commit 699a3cde74eac74fb54b2ade94d437c010449f89
Showing with 4 additions and 10 deletions.
  1. +3 −5 src/jdk.jpackage/windows/native/libjpackage/WindowsRegistry.cpp
  2. +1 −5 src/jdk.jpackage/windows/native/libjpackage/jpackage.cpp
@@ -68,9 +68,9 @@ std::wstring GetLongPath(const std::wstring& path) {

} // namespace

#ifdef __cplusplus

extern "C" {
#endif

#undef jdk_jpackage_internal_WindowsRegistry_HKEY_LOCAL_MACHINE
#define jdk_jpackage_internal_WindowsRegistry_HKEY_LOCAL_MACHINE 1L

@@ -216,6 +216,4 @@ extern "C" {
return JNI_FALSE;
}

#ifdef __cplusplus
}
#endif
} // extern "C"
@@ -30,9 +30,7 @@
#include "JniUtils.h"
#include "MsiDb.h"

#ifdef __cplusplus
extern "C" {
#endif

/*
* Class: jdk_jpackage_internal_ExecutableRebrander
@@ -159,6 +157,4 @@ extern "C" {
return 1;
}

#ifdef __cplusplus
}
#endif
} // extern "C"

0 comments on commit 699a3cd

Please sign in to comment.