Skip to content

Commit

Permalink
8223188: Removed unnecessary #ifdef __cplusplus from .cpp sources
Browse files Browse the repository at this point in the history
Reviewed-by: herrick, almatvee, iklam
  • Loading branch information
Alexey Semenyuk committed Feb 9, 2021
1 parent 05c6009 commit 699a3cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

#ifdef __cplusplus
}
#endif
} // extern "C"
6 changes: 1 addition & 5 deletions src/jdk.jpackage/windows/native/libjpackage/jpackage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#include "JniUtils.h"
#include "MsiDb.h"

#ifdef __cplusplus
extern "C" {
#endif

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

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

1 comment on commit 699a3cd

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.