Windows build fixes.
This commit is contained in:
parent
2168b72401
commit
c288fce12f
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 *);
|
||||||
|
|
Loading…
Reference in New Issue