A few tweaks (including wrapping stuff in #ifdef __APPLE__) to make sure

stuff still compiles under Linux, after applying Eric P.'s OSX changes.
This commit is contained in:
William Kendrick 2014-03-20 00:11:52 +00:00
parent e990b48de7
commit efd8d14585
3 changed files with 5 additions and 1 deletions

View file

@ -844,7 +844,9 @@ int setup_i18n(const char *restrict lang, const char *restrict locale)
if(lang) if(lang)
locale = language_to_locale(lang); locale = language_to_locale(lang);
#ifdef __APPLE__
patch_i18n(locale); //EP patch_i18n(locale); //EP
#endif
return set_current_language(locale); return set_current_language(locale);
} }

View file

@ -1,4 +1,6 @@
#ifdef __APPLE__
#include "patch.h" //EP #include "patch.h" //EP
#endif
#include "onscreen_keyboard.h" #include "onscreen_keyboard.h"
//#define DEBUG_OSK_COMPOSEMAP //#define DEBUG_OSK_COMPOSEMAP

View file

@ -13,7 +13,7 @@
#include <ctype.h> #include <ctype.h>
#include <stdint.h> #include <stdint.h>
#include "../src/parse.h" #include "../src/parse.h"
#include "debug.h" #include "../src/debug.h"
const char PARSE_YES[] = "yes"; const char PARSE_YES[] = "yes";
const char PARSE_NO[] = "no"; const char PARSE_NO[] = "no";