- Timestamp:
- Feb 28, 2014, 12:59:15 AM (11 years ago)
- Location:
- trunk/libc/include/sys/bsd
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/libc/include/sys/bsd/cdefs.h
r3823 r3824 124 124 #define __GNUC_PREREQ__(ma, mi) 0 125 125 #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 #else133 # define __KLIBC_WATCOM_PREREQ(ma, mi) 0134 #endif135 136 #ifdef __WATCOMC__137 # define __KLIBC_WATCOM_C99_PREREQ(ma, mi) (__KLIBC_WATCOM_PREREQ(ma, mi) && __STDC_VERSION__ >= 199901L)138 #else139 # define __KLIBC_WATCOM_C99_PREREQ(ma, mi) 0140 #endif141 142 #ifdef _MSC_VER143 # define __KLIBC_MSVC_PREREQ(ma, mi) (_MSC_VER >= (ma)*100 + (mi)*10)144 #else145 # define __KLIBC_MSVC_PREREQ(ma, mi) 0146 #endif147 /* bird - end: Compiler checks for MSC and OpenWatcom. */148 126 149 127 /* … … 710 688 #endif 711 689 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 compatability718 * with the current BSD stack. It can be defined together with the two719 * 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_TCPIP725 #endif726 #if defined(TCPV40HDRS) && defined(TCPV41HDRS)727 # error Cannot define both TCPV40HDRS and TCPV41HDRS. Make up your mind!728 #endif729 730 /* bird: toolkit pollution */731 #define __TCPPROTO(args) __P(args)732 #ifndef TCPCALL733 # ifdef __USE_LIBC_TCPIP734 # define TCPCALL735 # else736 # define TCPCALL _System737 # endif738 #endif739 740 /*741 * Smooth things out for other compilers.742 */743 #if defined(__WATCOMC__) || defined(_MSC_VER)744 # define __volatile__ volatile745 # define __const__ const746 # define __dead2747 # define __pure2748 # define __unused749 # ifdef __cplusplus750 # define __inline__ inline751 # elif defined(_MSC_VER)752 # define __inline__ _inline753 # else754 # define __inline__ _inline755 # endif756 #endif757 758 759 /* bird: include the GNU sys/cdefs.h (which fortunately have another760 blocker, _SYS_CDEFS_H). */761 #include <sys/gnu/cdefs.h>762 763 690 #endif /* !_SYS_CDEFS_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.