Changeset 1990


Ignore:
Timestamp:
Jun 5, 2005, 7:23:54 AM (20 years ago)
Author:
bird
Message:

default to USE_LIBC_TCPIP. Respect TCPV41HDRS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/sys/cdefs.h

    • Property cvs2svn:cvs-rev changed from 1.14 to 1.15
    r1989 r1990  
    479479#endif
    480480
     481/*-
     482 * There are two strict backwards compatibility modes:
     483 *      TCPV40HDRS - BSD 4.3 based stack. TCP/IP versions prior to 4.1.
     484 *      TCPV41HDRS - BSD 4.4 based stack. TCP/IP versions 4.1 and higher.
     485 *
     486 * __USE_LIBC_TCPIP will add additional features for better compatability
     487 * with the current BSD stack. It can be defined together with the two
     488 * strict modes, but will have little effect in TCPV40HDRS mode.
     489 *
     490 * The default mode non-strict with __USE_LIBC_TCPIP defined.
     491 */
     492#if !defined(__USE_LIBC_TCPIP) && !defined(TCPV40HDRS) && !defined(TCPV41HDRS)
     493#define __USE_LIBC_TCPIP
     494#endif
     495#if defined(TCPV40HDRS) && defined(TCPV41HDRS)
     496#error Cannot define both TCPV40HDRS and TCPV41HDRS. Make up your mind!
     497#endif
     498
    481499/* bird: toolkit pollution */
    482500#define __TCPPROTO(args) __P(args)
    483 #if !defined(TCPCALL) && !defined(__USE_LIBC_TCPIP)
    484 #define TCPCALL _System
    485 #else
    486 #define TCPCALL
    487 #endif
     501#ifndef TCPCALL
     502# ifdef __USE_LIBC_TCPIP
     503#  define TCPCALL
     504# else
     505#  define TCPCALL _System
     506# endif
     507#endif
    488508
    489509/* zap: For backward compatibility with GCC/EMX */
Note: See TracChangeset for help on using the changeset viewer.