features.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. #undef __KERNEL_STRICT_NAMES
  43. #ifndef _LOOSE_KERNEL_NAMES
  44. # define __KERNEL_STRICT_NAMES
  45. #endif
  46. #include <sys/cdefs.h>
  47. #endif