Fix review comments for locale restructuring

This commit is contained in:
Geert Janssens
2021-03-22 12:17:38 +01:00
parent 6537135e70
commit 2eadfb9b41
2 changed files with 3 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ set (gnucash_SOURCES
if (MINGW) if (MINGW)
list(APPEND gnucash_SOURCES "gnucash-locale-windows.c") list(APPEND gnucash_SOURCES "gnucash-locale-windows.c")
elseif(MAC_INTEGRATION) elseif (MAC_INTEGRATION)
list(APPEND gnucash_SOURCES "gnucash-locale-macos.mm") list(APPEND gnucash_SOURCES "gnucash-locale-macos.mm")
endif() endif()
@@ -75,8 +75,7 @@ set(gnucash_cli_SOURCES
if (MINGW) if (MINGW)
list(APPEND gnucash_cli_SOURCES "gnucash-locale-locale.c") list(APPEND gnucash_cli_SOURCES "gnucash-locale-locale.c")
endif() elseif (MAC_INTEGRATION)
if (MAC_INTEGRATION)
list(APPEND gnucash_cli_SOURCES "gnucash-locale-macos.mm") list(APPEND gnucash_cli_SOURCES "gnucash-locale-macos.mm")
endif() endif()

View File

@@ -32,7 +32,7 @@
* it is set both the Windows and POSIX locales to that. If not * it is set both the Windows and POSIX locales to that. If not
* retrieve the Windows locale and set POSIX to match. * retrieve the Windows locale and set POSIX to match.
*/ */
char *void char *
set_platform_locale() set_platform_locale()
{ {
WCHAR lpLocaleName[LOCALE_NAME_MAX_LENGTH]; WCHAR lpLocaleName[LOCALE_NAME_MAX_LENGTH];