diff options
Diffstat (limited to 'win32')
-rw-r--r-- | win32/PlatWin.cxx | 24 |
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) |