]>
Commit | Line | Data |
---|---|---|
60ecd672 EA |
1 | /* Header to ignore some special GNU libc interfaces not provided |
2 | * by uClibc. */ | |
3 | ||
4 | #ifndef _GNU_VERSIONS_H | |
5 | #define _GNU_VERSIONS_H 1 | |
6 | ||
7 | /* This file exists to avoid uClibc getting into trouble these macros | |
8 | such as the following: | |
9 | ||
10 | #define OBSTACK_INTERFACE_VERSION 1 | |
11 | #if !defined (_LIBC) && defined (__GNU_LIBRARY__) && __GNU_LIBRARY__ > 1 | |
12 | #include <gnu-versions.h> | |
13 | #if _GNU_OBSTACK_INTERFACE_VERSION == OBSTACK_INTERFACE_VERSION | |
14 | #define ELIDE_CODE | |
15 | #endif | |
16 | #endif | |
17 | ||
18 | By defining bogus interface versions, I believe we can safely get | |
19 | past such things while continuing to lie and define __GNU_LIBRARY__, | |
20 | thereby getting better compatibility with the majority of the code | |
21 | written for Linux. */ | |
22 | ||
23 | #define _GNU_OBSTACK_INTERFACE_VERSION -1 /* vs malloc/obstack.c */ | |
24 | #define _GNU_REGEX_INTERFACE_VERSION -1 /* vs posix/regex.c */ | |
25 | #define _GNU_GLOB_INTERFACE_VERSION -1 /* vs posix/glob.c */ | |
26 | #define _GNU_GETOPT_INTERFACE_VERSION -1 /* vs posix/getopt.c and | |
27 | posix/getopt1.c */ | |
28 | ||
29 | #endif /* gnu-versions.h */ |