|
|
1.1 root 1: /***
2: *stddef.h - definitions/declarations for common constants, types, variables
3: *
4: * Copyright (c) 1985-1990, 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: /* define NULL pointer value */
15:
16: #define NULL 0
17:
18:
19: /* declare reference to errno */
20:
21: #ifdef _MT
22: extern unsigned * _cdecl _errno(void);
23: #define errno (*_errno())
24: #else
25: extern int _cdecl errno;
26: #endif
27:
28:
29: /* define the implementation dependent size types */
30:
31: #ifndef _PTRDIFF_T_DEFINED
32: typedef int ptrdiff_t;
33: #define _PTRDIFF_T_DEFINED
34: #endif
35:
36: #ifndef _SIZE_T_DEFINED
37: typedef unsigned int size_t;
38: #define _SIZE_T_DEFINED
39: #endif
40:
41:
42: #ifdef _MT
43:
44: /* define pointer to thread id value */
45: extern unsigned * _cdecl __threadid(void);
46: #define _threadid (__threadid())
47:
48: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.