diff options
Diffstat (limited to 'v4.0/src/TOOLS/BLD/INC/STDDEF.H')
| -rw-r--r-- | v4.0/src/TOOLS/BLD/INC/STDDEF.H | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/v4.0/src/TOOLS/BLD/INC/STDDEF.H b/v4.0/src/TOOLS/BLD/INC/STDDEF.H new file mode 100644 index 0000000..b9637b0 --- /dev/null +++ b/v4.0/src/TOOLS/BLD/INC/STDDEF.H | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /*** | ||
| 2 | *stddef.h - definitions/declarations for common constants, types, variables | ||
| 3 | * | ||
| 4 | * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. | ||
| 5 | * | ||
| 6 | *Purpose: | ||
| 7 | * This file contains definitions and declarations for some commonly | ||
| 8 | * used constants, types, and variables. | ||
| 9 | * [ANSI] | ||
| 10 | * | ||
| 11 | *******************************************************************************/ | ||
| 12 | |||
| 13 | |||
| 14 | #ifndef NO_EXT_KEYS /* extensions enabled */ | ||
| 15 | #define _CDECL cdecl | ||
| 16 | #define _NEAR near | ||
| 17 | #else /* extensions not enabled */ | ||
| 18 | #define _CDECL | ||
| 19 | #define _NEAR | ||
| 20 | #endif /* NO_EXT_KEYS */ | ||
| 21 | |||
| 22 | |||
| 23 | /* define NULL pointer value */ | ||
| 24 | |||
| 25 | #if (defined(M_I86SM) || defined(M_I86MM)) | ||
| 26 | #define NULL 0 | ||
| 27 | #elif (defined(M_I86CM) || defined(M_I86LM) || defined(M_I86HM)) | ||
| 28 | #define NULL 0L | ||
| 29 | #endif | ||
| 30 | |||
| 31 | |||
| 32 | /* declare reference to errno */ | ||
| 33 | |||
| 34 | extern int _NEAR _CDECL errno; | ||
| 35 | |||
| 36 | |||
| 37 | /* define the implementation dependent size types */ | ||
| 38 | |||
| 39 | #ifndef _PTRDIFF_T_DEFINED | ||
| 40 | typedef int ptrdiff_t; | ||
| 41 | #define _PTRDIFF_T_DEFINED | ||
| 42 | #endif | ||
| 43 | |||
| 44 | #ifndef _SIZE_T_DEFINED | ||
| 45 | typedef unsigned int size_t; | ||
| 46 | #define _SIZE_T_DEFINED | ||
| 47 | #endif | ||
| 48 | |||