revert between 56095 -> 55830 in arch
[AROS.git] / workbench / network / stacks / AROSTCP / netlib / netlib.h
blob575e2069b06d25e90d715a783053a444a13a4bf7
1 /*
2 * $Id$
4 * netlib.h - common Network Support Library definitions
6 * Copyright © 1994 AmiTCP/IP Group,
7 * Network Solutions Development Inc.
8 * All rights reserved.
9 */
12 * This is supposed to be compiler-independent error setting interface
14 #ifdef __SASC
15 extern int _OSERR;
16 extern int errno;
17 extern int __io2errno(int);
18 #define __seterrno(x) do { errno = __io2errno(_OSERR = (x)); } while (0)
19 #define SET_OSERR(code) do { _OSERR = (code); } while (0)
20 #else
21 void __seterrno(UBYTE code);
22 #define SET_OSERR(code) do { } while (0)
23 #endif
25 #define set_errno __seterrno
26 #define OSERR _OSERR