kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

stddef.h (615B)


      1 /* stddef.h -- C11 7.19 -- Common definitions */
      2 #ifndef KIT_STDDEF_H
      3 #define KIT_STDDEF_H
      4 
      5 typedef __PTRDIFF_TYPE__ ptrdiff_t;
      6 typedef __SIZE_TYPE__ size_t;
      7 typedef __WCHAR_TYPE__ wchar_t;
      8 
      9 /* C11 7.19: max_align_t is an object type whose alignment is the greatest
     10    fundamental alignment. A struct holding the widest scalar types is the
     11    conventional definition and matches what GCC/Clang use in their own
     12    stddef.h. */
     13 typedef struct {
     14   long long __kit_ll;
     15   long double __kit_ld;
     16 } max_align_t;
     17 
     18 #undef NULL
     19 #define NULL ((void*)0)
     20 
     21 #define offsetof(type, member) __builtin_offsetof(type, member)
     22 
     23 #endif