adec8179db52f720a0f4eedd30693936f100cc68
[reactos.git] / reactos / include / crt / sys / types.h
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the w64 mingw-runtime package.
4 * No warranty is given; refer to the file DISCLAIMER within this package.
5 */
6 #ifndef _INC_TYPES
7 #define _INC_TYPES
8
9 #ifndef _WIN32
10 #error Only Win32 target is supported!
11 #endif
12
13 #include <crtdefs.h>
14
15 #ifndef _INO_T_DEFINED
16 #define _INO_T_DEFINED
17 typedef unsigned short _ino_t;
18 #ifndef NO_OLDNAMES
19 typedef unsigned short ino_t;
20 #endif
21 #endif
22
23 #ifndef _DEV_T_DEFINED
24 #define _DEV_T_DEFINED
25 typedef unsigned int _dev_t;
26 #ifndef NO_OLDNAMES
27 typedef unsigned int dev_t;
28 #endif
29 #endif
30
31 #ifndef _OFF_T_DEFINED
32 #define _OFF_T_DEFINED
33 typedef long _off_t;
34 # ifndef NO_OLDNAMES
35 typedef long off_t;
36 # endif
37 #endif
38
39 #if defined(_WINE)
40 #ifndef _WIN64
41 typedef int _pid_t;
42 #else
43 typedef __int64 _pid_t;
44 #endif
45 #ifndef NO_OLDNAMES
46 #ifndef __pid_t_defined
47 #define __pid_t_defined
48 typedef _pid_t pid_t;
49 #endif /* __pid_t_defined */
50 #endif
51 #endif
52
53 #endif /* !_INC_TYPES */