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.
23
#if !defined(_WIN32) && !defined(_MAC)
24
#error ERROR: Only Mac or Win32 targets supported!
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) */
55
#if _MSC_VER >= 800 && _M_IX86 >= 300
56
#define _CRTAPI1 __cdecl
62
/* declare reference to errno */
63
#ifndef PTW32_STATIC_LIB
65
# define PTW32_DLLPORT __declspec (dllexport)
67
# define PTW32_DLLPORT __declspec (dllimport)
70
# define PTW32_DLLPORT
73
/* declare reference to errno */
75
#if (defined(_MT) || defined(_MD) || defined(_DLL)) && !defined(_MAC)
76
PTW32_DLLPORT int * __cdecl _errno(void);
77
#define errno (*_errno())
78
#else /* ndef _MT && ndef _MD && ndef _DLL */
79
_CRTIMP extern int errno;
80
#endif /* _MT || _MD || _DLL */
118
/* defined differently in winsock.h on WinCE */
120
#define ENAMETOOLONG 38
126
/* defined differently in winsock.h on WinCE */
134
* Support EDEADLOCK for compatibiity with older MS-C versions.
136
#define EDEADLOCK EDEADLK
142
#endif /* _INC_ERRNO */