Fix compilation errors on FreeBSD.
[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 #define __WINE_USE_MSVCRT
9
10 #include "winnt.h"
11
12
13 typedef int ptrdiff_t;
14
15 #ifndef MSVCRT_SIZE_T_DEFINED
16 typedef unsigned int MSVCRT(size_t);
17 #define MSVCRT_SIZE_T_DEFINED
18 #endif
19
20 /* Best to leave this one alone: wchar_t */
21
22
23 #define offsetof(s,m)       (size_t)&(((s*)NULL)->m)
24
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
30 unsigned long               __threadid();
31 unsigned long               __threadhandle();
32 #define _threadid          (__threadid())
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38 #endif /* __WINE_STDDEF_H */