Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_stddef_h_
  3. #define __dj_include_stddef_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #include <sys/djtypes.h>
  10.  
  11. #define NULL 0
  12. #define offsetof(s_type, mbr) ((size_t) &((s_type *)0)->mbr)
  13. typedef int ptrdiff_t;
  14.  
  15. __DJ_size_t
  16. #undef __DJ_size_t
  17. #define __DJ_size_t
  18. __DJ_wchar_t
  19. #undef __DJ_wchar_t
  20. #define __DJ_wchar_t
  21.  
  22. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  23.  
  24. #ifndef __STRICT_ANSI__
  25.  
  26. #ifndef _POSIX_SOURCE
  27.  
  28. #endif /* !_POSIX_SOURCE */
  29. #endif /* !__STRICT_ANSI__ */
  30. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  31.  
  32. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  33. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  34.  
  35. #ifdef __cplusplus
  36. }
  37. #endif
  38.  
  39. #endif /* !__dj_include_stddef_h_ */
  40.