diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-04-04 20:24:33 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-04-11 19:29:47 +0200 |
commit | e28d1fe91671f64ce30d6e439787a48d71de5616 (patch) | |
tree | f787aaac6e894abf7e3f4144cd1b827e65db673d /apps/plugins/sdl/include/SDL_config_rockbox.h | |
parent | 2ad6c3438e53ddaa80c0aa43e995376495ce1a77 (diff) | |
download | rockbox-e28d1fe91671f64ce30d6e439787a48d71de5616.tar.gz rockbox-e28d1fe91671f64ce30d6e439787a48d71de5616.zip |
SDL: Silence a large number of compile warnings (WIP)
There are some real bugs in here, but we're drowning in warnings.
Change-Id: I7c2c0eafc8426327521bdd8a3ac2d3742ac16864
Diffstat (limited to 'apps/plugins/sdl/include/SDL_config_rockbox.h')
-rw-r--r-- | apps/plugins/sdl/include/SDL_config_rockbox.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/sdl/include/SDL_config_rockbox.h b/apps/plugins/sdl/include/SDL_config_rockbox.h index 91183ebf88..2a4c62801d 100644 --- a/apps/plugins/sdl/include/SDL_config_rockbox.h +++ b/apps/plugins/sdl/include/SDL_config_rockbox.h | |||
@@ -92,6 +92,9 @@ | |||
92 | #undef strdup | 92 | #undef strdup |
93 | 93 | ||
94 | /* clock() wraps current_tick */ | 94 | /* clock() wraps current_tick */ |
95 | #ifdef CLOCKS_PER_SEC | ||
96 | #undef CLOCKS_PER_SEC | ||
97 | #endif | ||
95 | #define CLOCKS_PER_SEC HZ | 98 | #define CLOCKS_PER_SEC HZ |
96 | 99 | ||
97 | /* | 100 | /* |
@@ -160,9 +163,13 @@ | |||
160 | #define strlcpy rb->strlcpy | 163 | #define strlcpy rb->strlcpy |
161 | #define strlen rb->strlen | 164 | #define strlen rb->strlen |
162 | #define strncasecmp rb->strncasecmp | 165 | #define strncasecmp rb->strncasecmp |
166 | #ifndef strncat | ||
163 | #define strncat rb->strlcat /* hack */ | 167 | #define strncat rb->strlcat /* hack */ |
168 | #endif | ||
164 | #define strncmp rb->strncmp | 169 | #define strncmp rb->strncmp |
170 | #ifndef strncat | ||
165 | #define strpbrk strpbrk_wrapper | 171 | #define strpbrk strpbrk_wrapper |
172 | #endif | ||
166 | #define strrchr rb->strrchr | 173 | #define strrchr rb->strrchr |
167 | #define strstr SDL_strstr | 174 | #define strstr SDL_strstr |
168 | #define strtok strtok_wrapper | 175 | #define strtok strtok_wrapper |