diff --git a/src/internal.h b/src/internal.h index aa393a8..172717c 100644 --- a/src/internal.h +++ b/src/internal.h @@ -42,7 +42,7 @@ #if defined(__clang__) || defined(__codemodel__) #define SUPPRESS_WARNING(x) _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wpragmas\"") _Pragma(STRINGIFY(clang diagnostic ignored x)) #define SUPPRESS_END _Pragma("clang diagnostic pop") -#elif defined(__GNUC__) +#elif defined(__GNUC__) && !defined(MAEMO5) #define SUPPRESS_WARNING(x) _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wpragmas\"") _Pragma(STRINGIFY(GCC diagnostic ignored x)) #define SUPPRESS_END _Pragma("GCC diagnostic pop") #else diff --git a/src/utils.c b/src/utils.c index 82cfba6..317cf64 100644 --- a/src/utils.c +++ b/src/utils.c @@ -553,6 +553,7 @@ SYMBOL_EXPORT void DisableCompositor(struct Game* game) { } SYMBOL_EXPORT char* StrToLower(struct Game* game, char* text) { + // FIXME: UTF-8 char *res = strdup(text), *iter = res; while (*iter) { *iter = tolower(*iter); @@ -562,6 +563,7 @@ SYMBOL_EXPORT char* StrToLower(struct Game* game, char* text) { } SYMBOL_EXPORT char* StrToUpper(struct Game* game, char* text) { + // FIXME: UTF-8 char *res = strdup(text), *iter = res; while (*iter) { *iter = toupper(*iter);