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 /firmware/libc | |
parent | 1828a753a8a62a8ad94fdf32b7c4406eb43bb608 (diff) | |
download | rockbox-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 'firmware/libc')
-rw-r--r-- | firmware/libc/include/stdio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/libc/include/stdio.h b/firmware/libc/include/stdio.h index 14f531fad1..6fdb3f9386 100644 --- a/firmware/libc/include/stdio.h +++ b/firmware/libc/include/stdio.h | |||
@@ -1,14 +1,14 @@ | |||
1 | #ifndef _STDIO_H_ | 1 | #ifndef _STDIO_H_ |
2 | #define _STDIO_H_ | 2 | #define _STDIO_H_ |
3 | 3 | ||
4 | #include <_ansi.h> | ||
5 | |||
6 | #define __need_size_t | 4 | #define __need_size_t |
7 | #include <stddef.h> | 5 | #include <stddef.h> |
8 | 6 | ||
9 | #define __need___va_list | 7 | #define __need___va_list |
10 | #include <stdarg.h> | 8 | #include <stdarg.h> |
11 | 9 | ||
10 | #include "gcc_extensions.h" | ||
11 | |||
12 | #ifndef NULL | 12 | #ifndef NULL |
13 | #define NULL 0 | 13 | #define NULL 0 |
14 | #endif | 14 | #endif |