2 * errno.h - system wide error numbers (set by system calls)
4 * Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
7 * This file defines the system-wide error numbers (set by
8 * system calls). Conforms to the XENIX standard. Extended
9 * for compatibility with Uniforum standard.
20 #if !defined(_INC_ERRNO)
24 #error ERROR: Only Win32 targets supported!
29 #if defined(__cplusplus)
39 #define _CRTIMP __declspec(dllimport)
46 /* Define __cdecl for non-Microsoft compilers */
48 #if ( !defined(_MSC_VER) && !defined(__cdecl) )
52 /* Define _CRTAPI1 (for compatibility with the NT SDK) */
54 #if !defined(_CRTAPI1)
55 #if _MSC_VER >= 800 && _M_IX86 >= 300
56 #define _CRTAPI1 __cdecl
62 #if !defined(PTW32_STATIC_LIB)
63 # if defined(PTW32_BUILD)
64 # define PTW32_DLLPORT __declspec (dllexport)
66 # define PTW32_DLLPORT __declspec (dllimport)
69 # define PTW32_DLLPORT
72 /* declare reference to errno */
74 #if (defined(_MT) || defined(_MD) || defined(_DLL)) && !defined(_MAC)
75 PTW32_DLLPORT
int * __cdecl
_errno(void);
76 #define errno (*_errno())
77 #else /* ndef _MT && ndef _MD && ndef _DLL */
78 _CRTIMP
extern int errno
;
79 #endif /* _MT || _MD || _DLL */
117 /* defined differently in winsock.h on WinCE */
118 #if !defined(ENAMETOOLONG)
119 #define ENAMETOOLONG 38
125 /* defined differently in winsock.h on WinCE */
126 #if !defined(ENOTEMPTY)
132 /* POSIX 2008 - robust mutexes */
133 #define EOWNERDEAD 43
134 #define ENOTRECOVERABLE 44
137 * Support EDEADLOCK for compatibiity with older MS-C versions.
139 #define EDEADLOCK EDEADLK
141 #if defined(__cplusplus)
145 #endif /* _INC_ERRNO */