atl: Implement AtlModuleRegisterServer.
[wine/wine64.git] / include / msvcrt / stddef.h
blob62bb850e88fa99aebd9d6a5f280527c5d820ad54
1 /*
2 * Time definitions
4 * Copyright 2000 Francois Gouget.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_STDDEF_H
21 #define __WINE_STDDEF_H
22 #ifndef __WINE_USE_MSVCRT
23 #define __WINE_USE_MSVCRT
24 #endif
26 #if defined(__x86_64__) && !defined(_WIN64)
27 #define _WIN64
28 #endif
30 #ifndef _WCHAR_T_DEFINED
31 #define _WCHAR_T_DEFINED
32 #ifndef __cplusplus
33 typedef unsigned short wchar_t;
34 #endif
35 #endif
37 #ifndef _INTPTR_T_DEFINED
38 #ifdef _WIN64
39 typedef __int64 intptr_t;
40 #else
41 typedef int intptr_t;
42 #endif
43 #define _INTPTR_T_DEFINED
44 #endif
46 #ifndef _UINTPTR_T_DEFINED
47 #ifdef _WIN64
48 typedef unsigned __int64 uintptr_t;
49 #else
50 typedef unsigned int uintptr_t;
51 #endif
52 #define _UINTPTR_T_DEFINED
53 #endif
55 #ifndef _PTRDIFF_T_DEFINED
56 #ifdef _WIN64
57 typedef __int64 ptrdiff_t;
58 #else
59 typedef int ptrdiff_t;
60 #endif
61 #define _PTRDIFF_T_DEFINED
62 #endif
64 #ifndef _SIZE_T_DEFINED
65 #ifdef _WIN64
66 typedef unsigned __int64 size_t;
67 #else
68 typedef unsigned int size_t;
69 #endif
70 #define _SIZE_T_DEFINED
71 #endif
73 #ifndef NULL
74 #ifdef __cplusplus
75 #define NULL 0
76 #else
77 #define NULL ((void *)0)
78 #endif
79 #endif
81 #ifdef _WIN64
82 #define offsetof(s,m) (size_t)((ptrdiff_t)&(((s*)NULL)->m))
83 #else
84 #define offsetof(s,m) (size_t)&(((s*)NULL)->m)
85 #endif
88 #ifdef __cplusplus
89 extern "C" {
90 #endif
92 unsigned long __threadid(void);
93 unsigned long __threadhandle(void);
94 #define _threadid (__threadid())
96 #ifdef __cplusplus
98 #endif
100 #endif /* __WINE_STDDEF_H */