Windows build fixes.

This commit is contained in:
Steve 2016-03-28 18:26:02 +01:00
parent 2168b72401
commit c288fce12f
3 changed files with 7 additions and 2 deletions

View File

@ -25,3 +25,4 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "../../common.h" #include "../../common.h"
extern App app; extern App app;
extern Dev dev;

View File

@ -54,9 +54,9 @@ void setLanguage(char *applicationName, char *languageCode)
if (c[0] != '\0') 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 #else

View File

@ -19,6 +19,10 @@ Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
#include "../common.h" #include "../common.h"
#ifdef _WIN32
#include <windows.h>
#endif
#define TABLE_SIZE 255 #define TABLE_SIZE 255
char *getTranslatedString(char *); char *getTranslatedString(char *);