Committer:
sca8er
Date:
Mon Mar 05 04:56:58 2012 +0000
Revision:
3:0c3bcea5b4d0

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sca8er 3:0c3bcea5b4d0 1 /*
sca8er 3:0c3bcea5b4d0 2 * types.h
sca8er 3:0c3bcea5b4d0 3 * This file has no copyright assigned and is placed in the Public Domain.
sca8er 3:0c3bcea5b4d0 4 * This file is a part of the mingw-runtime package.
sca8er 3:0c3bcea5b4d0 5 * No warranty is given; refer to the file DISCLAIMER within the package.
sca8er 3:0c3bcea5b4d0 6 *
sca8er 3:0c3bcea5b4d0 7 * The definition of constants, data types and global variables.
sca8er 3:0c3bcea5b4d0 8 *
sca8er 3:0c3bcea5b4d0 9 */
sca8er 3:0c3bcea5b4d0 10
sca8er 3:0c3bcea5b4d0 11 #ifndef _TYPES_H_
sca8er 3:0c3bcea5b4d0 12 #define _TYPES_H_
sca8er 3:0c3bcea5b4d0 13
sca8er 3:0c3bcea5b4d0 14 /* All the headers include this file. */
sca8er 3:0c3bcea5b4d0 15 #include <_mingw.h>
sca8er 3:0c3bcea5b4d0 16
sca8er 3:0c3bcea5b4d0 17 #define __need_wchar_t
sca8er 3:0c3bcea5b4d0 18 #define __need_size_t
sca8er 3:0c3bcea5b4d0 19 #define __need_ptrdiff_t
sca8er 3:0c3bcea5b4d0 20 #ifndef RC_INVOKED
sca8er 3:0c3bcea5b4d0 21 #include <stddef.h>
sca8er 3:0c3bcea5b4d0 22 #endif /* Not RC_INVOKED */
sca8er 3:0c3bcea5b4d0 23
sca8er 3:0c3bcea5b4d0 24 #ifndef RC_INVOKED
sca8er 3:0c3bcea5b4d0 25
sca8er 3:0c3bcea5b4d0 26 #ifndef _TIME32_T_DEFINED
sca8er 3:0c3bcea5b4d0 27 typedef __int32 __time32_t;
sca8er 3:0c3bcea5b4d0 28 #define _TIME32_T_DEFINED
sca8er 3:0c3bcea5b4d0 29 #endif
sca8er 3:0c3bcea5b4d0 30
sca8er 3:0c3bcea5b4d0 31 #ifndef _TIME64_T_DEFINED
sca8er 3:0c3bcea5b4d0 32 typedef __int64 __time64_t;
sca8er 3:0c3bcea5b4d0 33 #define _TIME64_T_DEFINED
sca8er 3:0c3bcea5b4d0 34 #endif
sca8er 3:0c3bcea5b4d0 35
sca8er 3:0c3bcea5b4d0 36 #ifndef _TIME_T_DEFINED
sca8er 3:0c3bcea5b4d0 37 /* FIXME __STRICT_ANSI__ ! */
sca8er 3:0c3bcea5b4d0 38 #if __MSVCRT_VERSION__ >= 0x0800
sca8er 3:0c3bcea5b4d0 39 #ifndef _USE_32BIT_TIME_T
sca8er 3:0c3bcea5b4d0 40 typedef __time64_t time_t;
sca8er 3:0c3bcea5b4d0 41 #else
sca8er 3:0c3bcea5b4d0 42 typedef __time32_t time_t;
sca8er 3:0c3bcea5b4d0 43 #endif /* !_USE_32BIT_TIME_T */
sca8er 3:0c3bcea5b4d0 44 #else
sca8er 3:0c3bcea5b4d0 45 typedef __time32_t time_t;
sca8er 3:0c3bcea5b4d0 46 #endif /* __MSVCRT_VERSION__ >= 0x0800 */
sca8er 3:0c3bcea5b4d0 47 #define _TIME_T_DEFINED
sca8er 3:0c3bcea5b4d0 48 #endif
sca8er 3:0c3bcea5b4d0 49
sca8er 3:0c3bcea5b4d0 50 #ifndef _OFF_T_
sca8er 3:0c3bcea5b4d0 51 #define _OFF_T_
sca8er 3:0c3bcea5b4d0 52 typedef long _off_t;
sca8er 3:0c3bcea5b4d0 53
sca8er 3:0c3bcea5b4d0 54 #ifndef _NO_OLDNAMES
sca8er 3:0c3bcea5b4d0 55 typedef _off_t off_t;
sca8er 3:0c3bcea5b4d0 56 #endif
sca8er 3:0c3bcea5b4d0 57 #endif /* Not _OFF_T_ */
sca8er 3:0c3bcea5b4d0 58
sca8er 3:0c3bcea5b4d0 59
sca8er 3:0c3bcea5b4d0 60 #ifndef _DEV_T_
sca8er 3:0c3bcea5b4d0 61 #define _DEV_T_
sca8er 3:0c3bcea5b4d0 62 #ifdef __MSVCRT__
sca8er 3:0c3bcea5b4d0 63 typedef unsigned int _dev_t;
sca8er 3:0c3bcea5b4d0 64 #else
sca8er 3:0c3bcea5b4d0 65 typedef short _dev_t;
sca8er 3:0c3bcea5b4d0 66 #endif
sca8er 3:0c3bcea5b4d0 67
sca8er 3:0c3bcea5b4d0 68 #ifndef _NO_OLDNAMES
sca8er 3:0c3bcea5b4d0 69 typedef _dev_t dev_t;
sca8er 3:0c3bcea5b4d0 70 #endif
sca8er 3:0c3bcea5b4d0 71 #endif /* Not _DEV_T_ */
sca8er 3:0c3bcea5b4d0 72
sca8er 3:0c3bcea5b4d0 73
sca8er 3:0c3bcea5b4d0 74 #ifndef _INO_T_
sca8er 3:0c3bcea5b4d0 75 #define _INO_T_
sca8er 3:0c3bcea5b4d0 76 typedef short _ino_t;
sca8er 3:0c3bcea5b4d0 77
sca8er 3:0c3bcea5b4d0 78 #ifndef _NO_OLDNAMES
sca8er 3:0c3bcea5b4d0 79 typedef _ino_t ino_t;
sca8er 3:0c3bcea5b4d0 80 #endif
sca8er 3:0c3bcea5b4d0 81 #endif /* Not _INO_T_ */
sca8er 3:0c3bcea5b4d0 82
sca8er 3:0c3bcea5b4d0 83
sca8er 3:0c3bcea5b4d0 84 #ifndef _PID_T_
sca8er 3:0c3bcea5b4d0 85 #define _PID_T_
sca8er 3:0c3bcea5b4d0 86 typedef int _pid_t;
sca8er 3:0c3bcea5b4d0 87
sca8er 3:0c3bcea5b4d0 88 #ifndef _NO_OLDNAMES
sca8er 3:0c3bcea5b4d0 89 typedef _pid_t pid_t;
sca8er 3:0c3bcea5b4d0 90 #endif
sca8er 3:0c3bcea5b4d0 91 #endif /* Not _PID_T_ */
sca8er 3:0c3bcea5b4d0 92
sca8er 3:0c3bcea5b4d0 93
sca8er 3:0c3bcea5b4d0 94 #ifndef _MODE_T_
sca8er 3:0c3bcea5b4d0 95 #define _MODE_T_
sca8er 3:0c3bcea5b4d0 96 typedef unsigned short _mode_t;
sca8er 3:0c3bcea5b4d0 97
sca8er 3:0c3bcea5b4d0 98 #ifndef _NO_OLDNAMES
sca8er 3:0c3bcea5b4d0 99 typedef _mode_t mode_t;
sca8er 3:0c3bcea5b4d0 100 #endif
sca8er 3:0c3bcea5b4d0 101 #endif /* Not _MODE_T_ */
sca8er 3:0c3bcea5b4d0 102
sca8er 3:0c3bcea5b4d0 103
sca8er 3:0c3bcea5b4d0 104 #ifndef _SIGSET_T_
sca8er 3:0c3bcea5b4d0 105 #define _SIGSET_T_
sca8er 3:0c3bcea5b4d0 106 typedef int _sigset_t;
sca8er 3:0c3bcea5b4d0 107
sca8er 3:0c3bcea5b4d0 108 #ifndef _NO_OLDNAMES
sca8er 3:0c3bcea5b4d0 109 typedef _sigset_t sigset_t;
sca8er 3:0c3bcea5b4d0 110 #endif
sca8er 3:0c3bcea5b4d0 111 #endif /* Not _SIGSET_T_ */
sca8er 3:0c3bcea5b4d0 112
sca8er 3:0c3bcea5b4d0 113 #ifndef _SSIZE_T_
sca8er 3:0c3bcea5b4d0 114 #define _SSIZE_T_
sca8er 3:0c3bcea5b4d0 115 typedef long _ssize_t;
sca8er 3:0c3bcea5b4d0 116
sca8er 3:0c3bcea5b4d0 117 #ifndef _NO_OLDNAMES
sca8er 3:0c3bcea5b4d0 118 typedef _ssize_t ssize_t;
sca8er 3:0c3bcea5b4d0 119 #endif
sca8er 3:0c3bcea5b4d0 120 #endif /* Not _SSIZE_T_ */
sca8er 3:0c3bcea5b4d0 121
sca8er 3:0c3bcea5b4d0 122 #ifndef _FPOS64_T_
sca8er 3:0c3bcea5b4d0 123 #define _FPOS64_T_
sca8er 3:0c3bcea5b4d0 124 typedef long long fpos64_t;
sca8er 3:0c3bcea5b4d0 125 #endif
sca8er 3:0c3bcea5b4d0 126
sca8er 3:0c3bcea5b4d0 127 #ifndef _OFF64_T_
sca8er 3:0c3bcea5b4d0 128 #define _OFF64_T_
sca8er 3:0c3bcea5b4d0 129 typedef long long off64_t;
sca8er 3:0c3bcea5b4d0 130 #endif
sca8er 3:0c3bcea5b4d0 131
sca8er 3:0c3bcea5b4d0 132 #if !defined __NO_ISOCEXT
sca8er 3:0c3bcea5b4d0 133 typedef unsigned int useconds_t;
sca8er 3:0c3bcea5b4d0 134 #endif /* Not __NO_ISOCEXT */
sca8er 3:0c3bcea5b4d0 135
sca8er 3:0c3bcea5b4d0 136 #endif /* Not RC_INVOKED */
sca8er 3:0c3bcea5b4d0 137
sca8er 3:0c3bcea5b4d0 138 #endif /* Not _TYPES_H_ */