features.h 727 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #ifdef __STDC__
  9. #define __P(x) x
  10. #define __const const
  11. /* Almost ansi */
  12. #if __STDC__ != 1
  13. #define const
  14. #define volatile
  15. #endif
  16. #else /* K&R */
  17. #define __P(x) ()
  18. #define __const
  19. #define const
  20. #define volatile
  21. #endif
  22. /* No C++ */
  23. #define __BEGIN_DECLS
  24. #define __END_DECLS
  25. /* GNUish things */
  26. #define __CONSTVALUE
  27. #define __CONSTVALUE2
  28. #define __USE_BSD
  29. #define __USE_MISC
  30. #define __USE_POSIX
  31. #define _POSIX_THREAD_SAFE_FUNCTIONS
  32. #include <sys/cdefs.h>
  33. #endif