~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/include/msvcrt/crtdefs.h

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /*
  2  * CRT definitions
  3  *
  4  * Copyright 2000 Francois Gouget.
  5  *
  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.
 10  *
 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.
 15  *
 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
 19  */
 20 
 21 #ifndef __WINE_USE_MSVCRT
 22 #define __WINE_USE_MSVCRT
 23 #endif
 24 
 25 #if defined(__x86_64__) && !defined(_WIN64)
 26 #define _WIN64
 27 #endif
 28 
 29 #if !defined(_MSC_VER) && !defined(__int64)
 30 # if defined(_WIN64) && !defined(__MINGW64__)
 31 #   define __int64 long
 32 # else
 33 #   define __int64 long long
 34 # endif
 35 #endif
 36 
 37 #ifndef __stdcall
 38 # ifdef __i386__
 39 #  ifdef __GNUC__
 40 #   ifdef __APPLE__ /* Mac OS X uses a 16-byte aligned stack and not a 4-byte one */
 41 #    define __stdcall __attribute__((__stdcall__)) __attribute__((__force_align_arg_pointer__))
 42 #   else
 43 #    define __stdcall __attribute__((__stdcall__))
 44 #   endif
 45 #  elif defined(_MSC_VER)
 46     /* Nothing needs to be done. __stdcall already exists */
 47 #  else
 48 #   error You need to define __stdcall for your compiler
 49 #  endif
 50 # elif defined(__x86_64__) && defined (__GNUC__)
 51 #  define __stdcall __attribute__((ms_abi))
 52 # else
 53 #  define __stdcall
 54 # endif
 55 #endif /* __stdcall */
 56 
 57 #ifndef __cdecl
 58 # if defined(__i386__) && defined(__GNUC__)
 59 #  ifdef __APPLE__ /* Mac OS X uses 16-byte aligned stack and not a 4-byte one */
 60 #   define __cdecl __attribute__((__cdecl__)) __attribute__((__force_align_arg_pointer__))
 61 #  else
 62 #   define __cdecl __attribute__((__cdecl__))
 63 #  endif
 64 # elif defined(__x86_64__) && defined (__GNUC__)
 65 #  define __cdecl __attribute__((ms_abi))
 66 # elif !defined(_MSC_VER)
 67 #  define __cdecl
 68 # endif
 69 #endif /* __cdecl */
 70 
 71 #ifndef __ms_va_list
 72 # if defined(__x86_64__) && defined (__GNUC__)
 73 #  define __ms_va_list __builtin_ms_va_list
 74 #  define __ms_va_start(list,arg) __builtin_ms_va_start(list,arg)
 75 #  define __ms_va_end(list) __builtin_ms_va_end(list)
 76 # else
 77 #  define __ms_va_list va_list
 78 #  define __ms_va_start(list,arg) va_start(list,arg)
 79 #  define __ms_va_end(list) va_end(list)
 80 # endif
 81 #endif
 82 
 83 #ifndef _MSVCRT_LONG_DEFINED
 84 #define _MSVCRT_LONG_DEFINED
 85 /* we need 32-bit longs even on 64-bit */
 86 typedef int __msvcrt_long;
 87 typedef unsigned int __msvcrt_ulong;
 88 #endif
 89 
 90 #ifndef _INTPTR_T_DEFINED
 91 #ifdef  _WIN64
 92 typedef __int64 intptr_t;
 93 #else
 94 typedef int intptr_t;
 95 #endif
 96 #define _INTPTR_T_DEFINED
 97 #endif
 98 
 99 #ifndef _UINTPTR_T_DEFINED
100 #ifdef  _WIN64
101 typedef unsigned __int64 uintptr_t;
102 #else
103 typedef unsigned int uintptr_t;
104 #endif
105 #define _UINTPTR_T_DEFINED
106 #endif
107 
108 #ifndef _PTRDIFF_T_DEFINED
109 #ifdef _WIN64
110 typedef __int64 ptrdiff_t;
111 #else
112 typedef int ptrdiff_t;
113 #endif
114 #define _PTRDIFF_T_DEFINED
115 #endif
116 
117 #ifndef _SIZE_T_DEFINED
118 #ifdef _WIN64
119 typedef unsigned __int64 size_t;
120 #else
121 typedef unsigned int size_t;
122 #endif
123 #define _SIZE_T_DEFINED
124 #endif
125 
126 #ifndef _TIME32_T_DEFINED
127 typedef __msvcrt_long __time32_t;
128 #define _TIME32_T_DEFINED
129 #endif
130 
131 #ifndef _TIME64_T_DEFINED
132 typedef __int64 __time64_t;
133 #define _TIME64_T_DEFINED
134 #endif
135 
136 #ifdef _USE_32BIT_TIME_T
137 # ifdef _WIN64
138 #  error You cannot use 32-bit time_t in Win64
139 # endif
140 #elif !defined(_WIN64)
141 # define _USE_32BIT_TIME_T
142 #endif
143 
144 #ifndef _TIME_T_DEFINED
145 #ifdef _USE_32BIT_TIME_T
146 typedef __time32_t time_t;
147 #else
148 typedef __time64_t time_t;
149 #endif
150 #define _TIME_T_DEFINED
151 #endif
152 
153 #ifndef _WCHAR_T_DEFINED
154 #ifndef __cplusplus
155 typedef unsigned short wchar_t;
156 #endif
157 #define _WCHAR_T_DEFINED
158 #endif
159 
160 #ifndef _WCTYPE_T_DEFINED
161 typedef unsigned short  wint_t;
162 typedef unsigned short  wctype_t;
163 #define _WCTYPE_T_DEFINED
164 #endif
165 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.