features.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef __FEATURES_H
  2. #define __FEATURES_H
  3. /* Major and minor version number of the uCLibc library package. Use
  4. these macros to test for features in specific releases. */
  5. #define __UCLIBC__ 0
  6. #define __UCLIBC_MAJOR__ 9
  7. #define __UCLIBC_MINOR__ 1
  8. /* Make a half-hearted attempt to accomodate non-gcc compilers */
  9. #ifndef __GNUC__
  10. #define __attribute(foo) /* Ignore */
  11. #endif
  12. /* __restrict is known in EGCS 1.2 and above. */
  13. #if !defined __GNUC__ || __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 92)
  14. # define __restrict /* Ignore */
  15. #endif
  16. #ifdef __STDC__
  17. #define __P(x) x
  18. #define __PMT(x) x
  19. #define __const const
  20. /* Almost ansi */
  21. #if __STDC__ != 1
  22. #define const
  23. #define volatile
  24. #endif
  25. #else /* K&R */
  26. #define __P(x) ()
  27. #define __const
  28. #define const
  29. #define volatile
  30. #endif
  31. /* No C++ */
  32. #define __BEGIN_DECLS
  33. #define __END_DECLS
  34. /* GNUish things */
  35. #define __CONSTVALUE
  36. #define __CONSTVALUE2
  37. #define __USE_BSD
  38. #define __USE_MISC
  39. #define __USE_POSIX
  40. #define __USE_POSIX2
  41. #define __USE_XOPEN
  42. #include <sys/cdefs.h>
  43. #endif