diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-25 14:44:29 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-25 14:44:29 +0000 |
| commit | a72aa856bdcc23dab64af83757830e1d2e1618c8 (patch) | |
| tree | 64aa0b5dbace189447607c9522fe82883b1febe4 /apps | |
| parent | 1828a753a8a62a8ad94fdf32b7c4406eb43bb608 (diff) | |
| download | rockbox-a72aa856bdcc23dab64af83757830e1d2e1618c8.zip rockbox-a72aa856bdcc23dab64af83757830e1d2e1618c8.tar.gz rockbox-a72aa856bdcc23dab64af83757830e1d2e1618c8.tar.bz2 rockbox-a72aa856bdcc23dab64af83757830e1d2e1618c8.tar.xz | |
Move some gcc extensions to new gcc_extensions.h header
- Move ATTRIBUTE_PRINTF/ATTRIBUTE_SCANF from _ansi.h
They are not related at all to this file, and this broke compilation
with Code Sourcery GCC which ships its own _ansi.h
- Move LIKELY/UNLIKELY from system.h
There is likely a lot more GCC extensions used everywhere in the source,
conditionally on __GNUC__ or unconditionally
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27548 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/codecs.h | 3 | ||||
| -rw-r--r-- | apps/gui/splash.h | 3 | ||||
| -rw-r--r-- | apps/plugin.h | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/apps/codecs.h b/apps/codecs.h index c7bd1a8..7e4fe94 100644 --- a/apps/codecs.h +++ b/apps/codecs.h @@ -31,7 +31,6 @@ #define MEM 2 #endif -#include <_ansi.h> #include <stdbool.h> #include <stdlib.h> #include "strlcpy.h" @@ -51,6 +50,8 @@ #endif #include "settings.h" +#include "gcc_extensions.h" + #ifdef CODEC #if defined(DEBUG) || defined(SIMULATOR) #undef DEBUGF diff --git a/apps/gui/splash.h b/apps/gui/splash.h index 1bbb9e9..76b4c16 100644 --- a/apps/gui/splash.h +++ b/apps/gui/splash.h @@ -21,8 +21,9 @@ #ifndef _GUI_SPLASH_H_ #define _GUI_SPLASH_H_ -#include <_ansi.h> + #include "screen_access.h" +#include "gcc_extensions.h" /* * Puts a splash message centered on all the screens for a given period diff --git a/apps/plugin.h b/apps/plugin.h index b7cbf7e..cf1fd77 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -39,6 +39,7 @@ #include <stdlib.h> #include <string.h> #include "string-extra.h" +#include "gcc_extensions.h" char* strncpy(char *, const char *, size_t); void* plugin_get_buffer(size_t *buffer_size); |