mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-03-04 09:11:27 +01:00
don't use warning suppression on Maemo
"#pragma GCC diagnostic not allowed inside functions"
This commit is contained in:
parent
b737d64ce8
commit
f82dc24a88
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue