features.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 __const const
  19. /* Almost ansi */
  20. #if __STDC__ != 1
  21. #define const
  22. #define volatile
  23. #endif
  24. #else /* K&R */
  25. #define __P(x) ()
  26. #define __const
  27. #define const
  28. #define volatile
  29. #endif
  30. /* No C++ */
  31. #define __BEGIN_DECLS
  32. #define __END_DECLS
  33. /* GNUish things */
  34. #define __CONSTVALUE
  35. #define __CONSTVALUE2
  36. #define __USE_BSD
  37. #define __USE_MISC
  38. #define __USE_POSIX
  39. #define __USE_POSIX2
  40. #define _POSIX_THREAD_SAFE_FUNCTIONS
  41. #include <sys/cdefs.h>
  42. #endif