Changeset 3824 for trunk


Ignore:
Timestamp:
Feb 28, 2014, 12:59:15 AM (11 years ago)
Author:
bird
Message:

pushed the bsd cdefs.h into it's own directory.

Location:
trunk/libc/include/sys/bsd
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/libc/include/sys/bsd/cdefs.h

    r3823 r3824  
    124124#define __GNUC_PREREQ__(ma, mi) 0
    125125#endif
    126 
    127 /*
    128  * Compiler checks for MSC and OpenWatcom. (bird)
    129  */
    130 #ifdef __WATCOMC__
    131 # define __KLIBC_WATCOM_PREREQ(ma, mi)  (__WATCOMC__ >= (ma)*10 + (mi))
    132 #else
    133 # define __KLIBC_WATCOM_PREREQ(ma, mi)  0
    134 #endif
    135 
    136 #ifdef __WATCOMC__
    137 # define __KLIBC_WATCOM_C99_PREREQ(ma, mi) (__KLIBC_WATCOM_PREREQ(ma, mi) && __STDC_VERSION__ >= 199901L)
    138 #else
    139 # define __KLIBC_WATCOM_C99_PREREQ(ma, mi)  0
    140 #endif
    141 
    142 #ifdef _MSC_VER
    143 # define __KLIBC_MSVC_PREREQ(ma, mi)    (_MSC_VER >= (ma)*100 + (mi)*10)
    144 #else
    145 # define __KLIBC_MSVC_PREREQ(ma, mi)    0
    146 #endif
    147 /* bird - end: Compiler checks for MSC and OpenWatcom. */
    148126
    149127/*
     
    710688#endif
    711689
    712 /*-
    713  * There are two strict backwards compatibility modes:
    714  *      TCPV40HDRS - BSD 4.3 based stack. TCP/IP versions prior to 4.1.
    715  *      TCPV41HDRS - BSD 4.4 based stack. TCP/IP versions 4.1 and higher.
    716  *
    717  * __USE_LIBC_TCPIP will add additional features for better compatability
    718  * with the current BSD stack. It can be defined together with the two
    719  * strict modes, but will have little effect in TCPV40HDRS mode.
    720  *
    721  * The default mode non-strict with __USE_LIBC_TCPIP defined.
    722  */
    723 #if !defined(__USE_LIBC_TCPIP) && !defined(TCPV40HDRS) && !defined(TCPV41HDRS)
    724 # define __USE_LIBC_TCPIP
    725 #endif
    726 #if defined(TCPV40HDRS) && defined(TCPV41HDRS)
    727 # error Cannot define both TCPV40HDRS and TCPV41HDRS. Make up your mind!
    728 #endif
    729 
    730 /* bird: toolkit pollution */
    731 #define __TCPPROTO(args) __P(args)
    732 #ifndef TCPCALL
    733 # ifdef __USE_LIBC_TCPIP
    734 #  define TCPCALL
    735 # else
    736 #  define TCPCALL _System
    737 # endif
    738 #endif
    739 
    740 /*
    741  * Smooth things out for other compilers.
    742  */
    743 #if defined(__WATCOMC__) || defined(_MSC_VER)
    744 # define __volatile__   volatile
    745 # define __const__      const
    746 # define __dead2
    747 # define __pure2
    748 # define __unused
    749 # ifdef __cplusplus
    750 #  define __inline__    inline
    751 # elif defined(_MSC_VER)
    752 #  define __inline__    _inline
    753 # else
    754 #  define __inline__    _inline
    755 # endif
    756 #endif
    757 
    758 
    759 /* bird: include the GNU sys/cdefs.h (which fortunately have another
    760          blocker, _SYS_CDEFS_H). */
    761 #include <sys/gnu/cdefs.h>
    762 
    763690#endif /* !_SYS_CDEFS_H_ */
Note: See TracChangeset for help on using the changeset viewer.