From c288fce12fe8e92f55534caf5efa395dae937a4a Mon Sep 17 00:00:00 2001 From: Steve Date: Mon, 28 Mar 2016 18:26:02 +0100 Subject: [PATCH] Windows build fixes. --- src/plat/win32/win32Init.h | 1 + src/system/i18n.c | 4 ++-- src/system/i18n.h | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/plat/win32/win32Init.h b/src/plat/win32/win32Init.h index 8e12bef..565d1b6 100644 --- a/src/plat/win32/win32Init.h +++ b/src/plat/win32/win32Init.h @@ -25,3 +25,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "../../common.h" extern App app; +extern Dev dev; diff --git a/src/system/i18n.c b/src/system/i18n.c index 7283929..5328afa 100644 --- a/src/system/i18n.c +++ b/src/system/i18n.c @@ -54,9 +54,9 @@ void setLanguage(char *applicationName, char *languageCode) if (c[0] != '\0') { - strncat(language, "_", MAX_MESSAGE_LENGTH - strlen(language) - 1); + strncat(language, "_", MAX_DESCRIPTION_LENGTH - strlen(language) - 1); - strncat(language, c, MAX_MESSAGE_LENGTH - strlen(language) - 1); + strncat(language, c, MAX_DESCRIPTION_LENGTH - strlen(language) - 1); } } #else diff --git a/src/system/i18n.h b/src/system/i18n.h index a3263e1..d73d04f 100644 --- a/src/system/i18n.h +++ b/src/system/i18n.h @@ -19,6 +19,10 @@ Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA. #include "../common.h" +#ifdef _WIN32 + #include +#endif + #define TABLE_SIZE 255 char *getTranslatedString(char *);