windows-nt/Source/XPSP1/NT/base/crts/crtw32/h/syserr.h

57 lines
1.7 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/***
*syserr.h - constants/macros for error message routines
*
* Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* This file contains macros/constants for perror, strerror,
* and _strerror.
*
* [Internal]
*
*Revision History:
* 08-15-89 GJF Fixed copyright
* 10-30-89 GJF Fixed copyright (again)
* 03-02-90 GJF Added #ifndef _INC_SYSERR stuff
* 01-22-91 GJF ANSI naming.
* 01-23-92 GJF Added support for crtdll.dll (have to redefine
* _sys_nerr).
* 10-01-92 GJF Increased _SYS_MSGMAX.
* 02-23-93 SKS Update copyright to 1993
* 04-04-93 SKS Switch to _declspec(dllimport) for exported data/funcs
* 10-12-93 GJF Merged NT and Cuda versions.
* 02-14-95 CFW Clean up Mac merge.
* 03-29-95 CFW Add error message to internal headers.
* 12-14-95 JWM Add "#pragma once".
* 02-24-97 GJF Cleaned out obsolete support for _NTSDK. Also,
* detab-ed.
*
****/
#if _MSC_VER > 1000 /*IFSTRIP=IGN*/
#pragma once
#endif
#ifndef _INC_SYSERR
#define _INC_SYSERR
#ifndef _CRTBLD
/*
* This is an internal C runtime header file. It is used when building
* the C runtimes only. It is not to be used as a public header file.
*/
#error ERROR: Use of C runtime library internal header file.
#endif /* _CRTBLD */
/* Macro for perror, strerror, and _strerror */
#define _sys_err_msg(m) _sys_errlist[(((m)<0)||((m)>=_sys_nerr)?_sys_nerr:(m))]
/* Maximum length of an error message.
NOTE: This parameter value must be correspond to the length of the longest
message in sys_errlist (source module syserr.c). */
#define _SYS_MSGMAX 38
#endif /* _INC_SYSERR */