aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index a4fd552b2..37c33d6ed 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -4148,7 +4148,18 @@ void Platform::DebugPrintf(const char *, ...) noexcept {
}
#endif
-static bool assertionPopUps = true;
+namespace {
+
+void ReleaseLibrary(HMODULE &hLib) noexcept {
+ if (hLib) {
+ FreeLibrary(hLib);
+ hLib = {};
+ }
+}
+
+bool assertionPopUps = true;
+
+}
bool Platform::ShowAssertionPopUps(bool assertionPopUps_) noexcept {
const bool ret = assertionPopUps;
@@ -4182,17 +4193,6 @@ void Platform_Initialise(void *hInstance) noexcept {
ListBoxX_Register();
}
-namespace {
-
-void ReleaseLibrary(HMODULE &hLib) noexcept {
- if (hLib) {
- FreeLibrary(hLib);
- hLib = {};
- }
-}
-
-}
-
void Platform_Finalise(bool fromDllMain) noexcept {
if (!fromDllMain) {
#if defined(USE_D2D)