cdefs.h 471 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __SYS_CDEFS_H
  2. #define __SYS_CDEFS_H
  3. #include <features.h>
  4. #if defined (__STDC__) && __STDC__
  5. #define __CONCAT(x,y) x ## y
  6. #define __STRING(x) #x
  7. /* This is not a typedef so `const __ptr_t' does the right thing. */
  8. #define __ptr_t void *
  9. #else
  10. #define __CONCAT(x,y) x/**/y
  11. #define __STRING(x) "x"
  12. #define __ptr_t char *
  13. #endif
  14. /* No C++ */
  15. #define __BEGIN_DECLS
  16. #define __END_DECLS
  17. /* GNUish things */
  18. #define __CONSTVALUE
  19. #define __CONSTVALUE2
  20. #endif