gnu-versions.h 1.0 KB

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