pwin32.h

Go to the documentation of this file.
00001 /*
00002 ******************************************************************************
00003 *
00004 *   Copyright (C) 1997-2005, International Business Machines
00005 *   Corporation and others.  All Rights Reserved.
00006 *
00007 ******************************************************************************
00008 *
00009 *  FILE NAME : platform.h
00010 *
00011 *   Date        Name        Description
00012 *   05/13/98    nos         Creation (content moved here from ptypes.h).
00013 *   03/02/99    stephen     Added AS400 support.
00014 *   03/30/99    stephen     Added Linux support.
00015 *   04/13/99    stephen     Reworked for autoconf.
00016 ******************************************************************************
00017 */
00018 
00024 /* Define the platform we're on. */
00025 #ifndef U_WINDOWS
00026 #define U_WINDOWS
00027 #endif
00028 
00029 #if defined(__BORLANDC__)
00030 #define U_HAVE_PLACEMENT_NEW 0
00031 #define U_HAVE_INTTYPES_H 1
00032 #define __STDC_CONSTANT_MACROS
00033 #endif
00034 
00035 /* _MSC_VER is used to detect the Microsoft compiler. */
00036 #if defined(_MSC_VER)
00037 #define U_INT64_IS_LONG_LONG 0
00038 #else
00039 #define U_INT64_IS_LONG_LONG 1
00040 #endif
00041 
00042 /* Define whether inttypes.h is available */
00043 #ifndef U_HAVE_INTTYPES_H
00044 #define U_HAVE_INTTYPES_H 0
00045 #endif
00046 
00047 /*
00048  * Define what support for C++ streams is available.
00049  *     If U_IOSTREAM_SOURCE is set to 199711, then <iostream> is available
00050  * (1997711 is the date the ISO/IEC C++ FDIS was published), and then
00051  * one should qualify streams using the std namespace in ICU header
00052  * files.
00053  *     If U_IOSTREAM_SOURCE is set to 198506, then <iostream.h> is
00054  * available instead (198506 is the date when Stroustrup published
00055  * "An Extensible I/O Facility for C++" at the summer USENIX conference).
00056  *     If U_IOSTREAM_SOURCE is 0, then C++ streams are not available and
00057  * support for them will be silently suppressed in ICU.
00058  *
00059  */
00060 
00061 #ifndef U_IOSTREAM_SOURCE
00062 #define U_IOSTREAM_SOURCE 199711
00063 #endif
00064 
00065 /* Determines whether specific types are available */
00066 #ifndef U_HAVE_INT8_T
00067 #define U_HAVE_INT8_T U_HAVE_INTTYPES_H
00068 #endif
00069 
00070 #ifndef U_HAVE_UINT8_T
00071 #define U_HAVE_UINT8_T U_HAVE_INTTYPES_H
00072 #endif
00073 
00074 #ifndef U_HAVE_INT16_T
00075 #define U_HAVE_INT16_T U_HAVE_INTTYPES_H
00076 #endif
00077 
00078 #ifndef U_HAVE_UINT16_T
00079 #define U_HAVE_UINT16_T U_HAVE_INTTYPES_H
00080 #endif
00081 
00082 #ifndef U_HAVE_INT32_T
00083 #define U_HAVE_INT32_T U_HAVE_INTTYPES_H
00084 #endif
00085 
00086 #ifndef U_HAVE_UINT32_T
00087 #define U_HAVE_UINT32_T U_HAVE_INTTYPES_H
00088 #endif
00089 
00090 #ifndef U_HAVE_INT64_T
00091 #define U_HAVE_INT64_T U_HAVE_INTTYPES_H
00092 #endif
00093 
00094 #ifndef U_HAVE_UINT64_T
00095 #define U_HAVE_UINT64_T U_HAVE_INTTYPES_H
00096 #endif
00097 
00098 /* Define 64 bit limits */
00099 #if !U_INT64_IS_LONG_LONG
00100 #define INT64_C(x) ((int64_t)x)
00101 #define UINT64_C(x) ((uint64_t)x)
00102 /* else use the umachine.h definition */
00103 #endif
00104 
00105 /*===========================================================================*/
00106 /* Generic data types                                                        */
00107 /*===========================================================================*/
00108 
00109 /* If your platform does not have the <inttypes.h> header, you may
00110    need to edit the typedefs below. */
00111 #if U_HAVE_INTTYPES_H
00112 #include <inttypes.h>
00113 #else /* U_HAVE_INTTYPES_H */
00114 
00115 #if ! U_HAVE_INT8_T
00116 typedef signed char int8_t;
00117 #endif
00118 
00119 #if ! U_HAVE_UINT8_T
00120 typedef unsigned char uint8_t;
00121 #endif
00122 
00123 #if ! U_HAVE_INT16_T
00124 typedef signed short int16_t;
00125 #endif
00126 
00127 #if ! U_HAVE_UINT16_T
00128 typedef unsigned short uint16_t;
00129 #endif
00130 
00131 #if ! U_HAVE_INT32_T
00132 typedef signed int int32_t;
00133 #endif
00134 
00135 #if ! U_HAVE_UINT32_T
00136 typedef unsigned int uint32_t;
00137 #endif
00138 
00139 #if ! U_HAVE_INT64_T
00140 #if U_INT64_IS_LONG_LONG
00141     typedef signed long long int64_t;
00142 #else
00143     typedef signed __int64 int64_t;
00144 #endif
00145 #endif
00146 
00147 #if ! U_HAVE_UINT64_T
00148 #if U_INT64_IS_LONG_LONG
00149     typedef unsigned long long uint64_t;
00150 #else
00151     typedef unsigned __int64 uint64_t;
00152 #endif
00153 #endif
00154 #endif
00155 
00156 /*===========================================================================*/
00157 /* Compiler and environment features                                         */
00158 /*===========================================================================*/
00159 
00160 /* Define whether namespace is supported */
00161 #ifndef U_HAVE_NAMESPACE
00162 #define U_HAVE_NAMESPACE 1
00163 #endif
00164 
00165 /* Determines the endianness of the platform */
00166 #define U_IS_BIG_ENDIAN 0
00167 
00168 /* 1 or 0 to enable or disable threads.  If undefined, default is: enable threads. */
00169 #define ICU_USE_THREADS 1
00170 
00171 /* Windows currently only runs on x86 CPUs which currently all have strong memory models. */
00172 #define UMTX_STRONG_MEMORY_MODEL 1
00173 
00174 #ifndef U_DEBUG
00175 #ifdef _DEBUG
00176 #define U_DEBUG 1
00177 #else
00178 #define U_DEBUG 0
00179 #endif
00180 #endif
00181 
00182 #ifndef U_RELEASE
00183 #ifdef NDEBUG
00184 #define U_RELEASE 1
00185 #else
00186 #define U_RELEASE 0
00187 #endif
00188 #endif
00189 
00190 /* Determine whether to disable renaming or not. This overrides the
00191    setting in umachine.h which is for all platforms. */
00192 #ifndef U_DISABLE_RENAMING
00193 #define U_DISABLE_RENAMING 0
00194 #endif
00195 
00196 /* Determine whether to override new and delete. */
00197 #ifndef U_OVERRIDE_CXX_ALLOCATION
00198 #define U_OVERRIDE_CXX_ALLOCATION 1
00199 #endif
00200 /* Determine whether to override placement new and delete for STL. */
00201 #ifndef U_HAVE_PLACEMENT_NEW
00202 #define U_HAVE_PLACEMENT_NEW 1
00203 #endif
00204 /* Determine whether to override new and delete for MFC. */
00205 #if !defined(U_HAVE_DEBUG_LOCATION_NEW) && defined(_MSC_VER)
00206 #define U_HAVE_DEBUG_LOCATION_NEW 1
00207 #endif
00208 
00209 /* Determine whether to enable tracing. */
00210 #ifndef U_ENABLE_TRACING
00211 #define U_ENABLE_TRACING 1
00212 #endif
00213 
00214 /* Do we allow ICU users to use the draft APIs by default? */
00215 #ifndef U_DEFAULT_SHOW_DRAFT
00216 #define U_DEFAULT_SHOW_DRAFT 1
00217 #endif
00218 
00219 /* Define the library suffix in a C syntax. */
00220 #define U_HAVE_LIB_SUFFIX 0
00221 #define U_LIB_SUFFIX_C_NAME 
00222 #define U_LIB_SUFFIX_C_NAME_STRING ""
00223 
00224 /*===========================================================================*/
00225 /* Information about wchar support                                           */
00226 /*===========================================================================*/
00227 
00228 #define U_HAVE_WCHAR_H 1
00229 #define U_SIZEOF_WCHAR_T 2
00230 
00231 #define U_HAVE_WCSCPY 1
00232 
00233 /*===========================================================================*/
00234 /* Information about POSIX support                                           */
00235 /*===========================================================================*/
00236 
00237 #if 1
00238 #define U_TZSET         _tzset
00239 #endif
00240 #if 1
00241 #define U_TIMEZONE      _timezone
00242 #endif
00243 #if 1
00244 #define U_TZNAME        _tzname
00245 #endif
00246 
00247 #define U_HAVE_MMAP 0
00248 #define U_HAVE_POPEN 0
00249 
00250 /*===========================================================================*/
00251 /* Symbol import-export control                                              */
00252 /*===========================================================================*/
00253 
00254 #ifdef U_STATIC_IMPLEMENTATION
00255 #define U_EXPORT
00256 #else
00257 #define U_EXPORT __declspec(dllexport)
00258 #endif
00259 #define U_EXPORT2 __cdecl
00260 #define U_IMPORT __declspec(dllimport)
00261 
00262 /*===========================================================================*/
00263 /* Code alignment and C function inlining                                    */
00264 /*===========================================================================*/
00265 
00266 #ifndef U_INLINE
00267 #   ifdef __cplusplus
00268 #       define U_INLINE inline
00269 #   else
00270 #       define U_INLINE __inline
00271 #   endif
00272 #endif
00273 
00274 #if defined(_MSC_VER) && defined(_M_IX86)
00275 #define U_ALIGN_CODE(val)    __asm      align val
00276 #else
00277 #define U_ALIGN_CODE(val)
00278 #endif
00279 
00280 
00281 /*===========================================================================*/
00282 /* Programs used by ICU code                                                 */
00283 /*===========================================================================*/
00284 
00285 #ifndef U_MAKE
00286 #define U_MAKE  "nmake"
00287 #define U_MAKE_IS_NMAKE 1
00288 #endif

Generated on Wed Jul 20 08:07:20 2005 for ICU 3.4 by  doxygen 1.4.2-20050421