summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-07-25 14:44:29 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-07-25 14:44:29 +0000
commita72aa856bdcc23dab64af83757830e1d2e1618c8 (patch)
tree64aa0b5dbace189447607c9522fe82883b1febe4 /apps
parent1828a753a8a62a8ad94fdf32b7c4406eb43bb608 (diff)
downloadrockbox-a72aa856bdcc23dab64af83757830e1d2e1618c8.tar.gz
rockbox-a72aa856bdcc23dab64af83757830e1d2e1618c8.zip
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.h3
-rw-r--r--apps/gui/splash.h3
-rw-r--r--apps/plugin.h1
3 files changed, 5 insertions, 2 deletions
diff --git a/apps/codecs.h b/apps/codecs.h
index c7bd1a87d0..7e4fe948c2 100644
--- a/apps/codecs.h
+++ b/apps/codecs.h
@@ -31,7 +31,6 @@
31#define MEM 2 31#define MEM 2
32#endif 32#endif
33 33
34#include <_ansi.h>
35#include <stdbool.h> 34#include <stdbool.h>
36#include <stdlib.h> 35#include <stdlib.h>
37#include "strlcpy.h" 36#include "strlcpy.h"
@@ -51,6 +50,8 @@
51#endif 50#endif
52#include "settings.h" 51#include "settings.h"
53 52
53#include "gcc_extensions.h"
54
54#ifdef CODEC 55#ifdef CODEC
55#if defined(DEBUG) || defined(SIMULATOR) 56#if defined(DEBUG) || defined(SIMULATOR)
56#undef DEBUGF 57#undef DEBUGF
diff --git a/apps/gui/splash.h b/apps/gui/splash.h
index 1bbb9e9e49..76b4c16d0c 100644
--- a/apps/gui/splash.h
+++ b/apps/gui/splash.h
@@ -21,8 +21,9 @@
21 21
22#ifndef _GUI_SPLASH_H_ 22#ifndef _GUI_SPLASH_H_
23#define _GUI_SPLASH_H_ 23#define _GUI_SPLASH_H_
24#include <_ansi.h> 24
25#include "screen_access.h" 25#include "screen_access.h"
26#include "gcc_extensions.h"
26 27
27/* 28/*
28 * Puts a splash message centered on all the screens for a given period 29 * Puts a splash message centered on all the screens for a given period
diff --git a/apps/plugin.h b/apps/plugin.h
index b7cbf7e112..cf1fd77426 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -39,6 +39,7 @@
39#include <stdlib.h> 39#include <stdlib.h>
40#include <string.h> 40#include <string.h>
41#include "string-extra.h" 41#include "string-extra.h"
42#include "gcc_extensions.h"
42 43
43char* strncpy(char *, const char *, size_t); 44char* strncpy(char *, const char *, size_t);
44void* plugin_get_buffer(size_t *buffer_size); 45void* plugin_get_buffer(size_t *buffer_size);