scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

cdefs.h (856B)


      1 #ifndef _CDEF_H
      2 typedef __builtin_va_list __va_list;
      3 typedef int __wchar_t;
      4 #endif
      5 
      6 #ifdef _NEED_SIZET
      7 #ifndef _SIZET
      8 typedef unsigned long size_t;
      9 #define _SIZET
     10 #endif
     11 #undef _NEED_SIZET
     12 #endif
     13 
     14 #ifdef _NEED_PTRDIFFT
     15 #ifndef _PTRDIFFT
     16 typedef long ptrdiff_t;
     17 #define _PTRDIFFT
     18 #endif
     19 #undef _NEED_PTRDIFFT
     20 #endif
     21 
     22 #ifdef _NEED_NULL
     23 #ifndef NULL
     24 #define NULL ((void *) 0)
     25 #endif
     26 #undef _NEED_NULL
     27 #endif
     28 
     29 #ifdef _NEED_WCHART
     30 #ifndef _WCHART
     31 typedef __wchar_t wchar_t;
     32 #define _WCHART
     33 #endif
     34 #undef _NEED_WCHART
     35 #endif
     36 
     37 #ifdef _NEED_WEOF
     38 #ifndef WEOF
     39 #define WEOF 0xFFFFFFFFU
     40 #endif
     41 #undef _NEED_WEOF
     42 #endif
     43 
     44 #ifdef _NEED_WINT
     45 #ifndef _WINT
     46 typedef unsigned wint_t;
     47 #define _WINT
     48 #endif
     49 #undef _NEED_WINT
     50 #endif
     51 
     52 #ifdef _NEED_WCHARLIM
     53 #ifndef _WCHARLIM
     54 #define WCHAR_MAX 0x7FFFFFFF
     55 #define WCHAR_MIN 0
     56 #define _WCHARLIM
     57 #endif
     58 #undef _NEED_WCHARLIM
     59 #endif