Fixed some issues found by winapi_check.
[wine] / include / msvcrt / stddef.h
1 /*
2  * Time definitions
3  *
4  * Copyright 2000 Francois Gouget.
5  */
6 #ifndef __WINE_STDDEF_H
7 #define __WINE_STDDEF_H
8
9 #include "winnt.h"
10
11
12 typedef int ptrdiff_t;
13
14 #ifndef MSVCRT_SIZE_T_DEFINED
15 typedef unsigned int MSVCRT(size_t);
16 #define MSVCRT_SIZE_T_DEFINED
17 #endif
18
19 /* Best to leave this one alone: wchar_t */
20
21
22 #define offsetof(s,m)       (size_t)&(((s*)NULL)->m)
23
24
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28
29 unsigned long               __threadid();
30 unsigned long               __threadhandle();
31 #define _threadid          (__threadid())
32
33 #ifdef __cplusplus
34 }
35 #endif
36
37 #endif /* __WINE_STDDEF_H */