8223188: Removed unnecessary #ifdef __cplusplus from .cpp sources

Reviewed-by: herrick, almatvee, iklam
This commit is contained in:
Alexey Semenyuk 2021-02-09 22:20:43 +00:00
parent 05c6009eab
commit 699a3cde74
2 changed files with 4 additions and 10 deletions

View File

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

View File

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