Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

pwin32.h

00001 /*
00002 ******************************************************************************
00003 *
00004 *   Copyright (C) 1997-2001, 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 
00019 /* Define the platform we're on. */
00020 #ifndef WIN32
00021 #define WIN32
00022 #endif
00023 
00024 /* Define whether inttypes.h is available */
00025 #define U_HAVE_INTTYPES_H 0
00026 
00027 /*
00028  * Define what support for C++ streams is available.
00029  *     If U_IOSTREAM_SOURCE is set to 199711, then <iostream> is available
00030  * (1997711 is the date the ISO/IEC C++ FDIS was published), and then
00031  * one should qualify streams using the std namespace in ICU header
00032  * files.
00033  *     If U_IOSTREAM_SOURCE is set to 198506, then <iostream.h> is
00034  * available instead (198506 is the date when Stroustrup published
00035  * "An Extensible I/O Facility for C++" at the summer USENIX conference).
00036  *     If U_IOSTREAM_SOURCE is 0, then C++ streams are not available and
00037  * support for them will be silently suppressed in ICU.
00038  *
00039  */
00040 
00041 #ifndef U_IOSTREAM_SOURCE
00042 #define U_IOSTREAM_SOURCE 199711
00043 #endif
00044 
00045 /* Determines whether specific types are available */
00046 #define U_HAVE_INT8_T 0
00047 #define U_HAVE_UINT8_T 0
00048 #define U_HAVE_INT16_T 0
00049 #define U_HAVE_UINT16_T 0
00050 #define U_HAVE_INT32_T 0
00051 #define U_HAVE_UINT32_T 0
00052 #define U_HAVE_INT64_T 0
00053 #define U_HAVE_UINT64_T 0
00054 
00055 /* Define whether namespace is supported */
00056 #define U_HAVE_NAMESPACE 1
00057 
00058 /* Determines the endianness of the platform */
00059 #define U_IS_BIG_ENDIAN 0
00060 
00061 /*===========================================================================*/
00062 /* Generic data types                                                        */
00063 /*===========================================================================*/
00064 
00065 /* If your platform does not have the <inttypes.h> header, you may
00066    need to edit the typedefs below. */
00067 #if U_HAVE_INTTYPES_H
00068 #include <inttypes.h>
00069 #else
00070 
00071 #if ! U_HAVE_INT8_T
00072 typedef signed char int8_t;
00073 #endif
00074 
00075 #if ! U_HAVE_UINT8_T
00076 typedef unsigned char uint8_t;
00077 #endif
00078 
00079 #if ! U_HAVE_INT16_T
00080 typedef signed short int16_t;
00081 #endif
00082 
00083 #if ! U_HAVE_UINT16_T
00084 typedef unsigned short uint16_t;
00085 #endif
00086 
00087 #if ! U_HAVE_INT32_T
00088 #   if defined(_LP64)
00089       typedef signed int  int32_t;
00090 #   else
00091       typedef signed long int32_t;
00092 #   endif
00093 #endif
00094 
00095 #if ! U_HAVE_UINT32_T
00096 #   if defined(_LP64)
00097       typedef unsigned int  uint32_t;
00098 #   else
00099       typedef unsigned long uint32_t;
00100 #   endif
00101 #endif
00102 
00103 #if ! U_HAVE_INT64_T
00104     /* Could use _MSC_VER to detect Microsoft compiler. */
00105     typedef __int64   int64_t;
00106 #endif
00107 
00108 #if ! U_HAVE_UINT64_T
00109     /* Could use _MSC_VER to detect Microsoft compiler. */
00110     typedef unsigned __int64   uint64_t;
00111 #endif
00112 
00113 #endif
00114 
00115 /*===========================================================================*/
00116 /* Character data types                                                      */
00117 /*===========================================================================*/
00118 
00119 #define U_SIZEOF_WCHAR_T 2
00120 
00121 /*===========================================================================*/
00122 /* Do we have wcscpy and other similar functions                             */
00123 /*===========================================================================*/
00124 
00125 #define U_HAVE_WCSCPY    1
00126 
00127 /*===========================================================================*/
00128 /* Information about POSIX support                                           */
00129 /*===========================================================================*/
00130 
00131 #define U_TZSET         _tzset
00132 #define U_HAVE_TIMEZONE 1
00133 #if U_HAVE_TIMEZONE
00134 #   define U_TIMEZONE   _timezone
00135 #endif
00136 #define U_TZNAME        _tzname
00137 
00138 #define U_HAVE_MMAP     0
00139 
00140 /*===========================================================================*/
00141 /* Symbol import-export control                                              */
00142 /*===========================================================================*/
00143 
00144 #define U_EXPORT __declspec(dllexport)
00145 #define U_EXPORT2
00146 #define U_IMPORT __declspec(dllimport)
00147 
00148 /*===========================================================================*/
00149 /* Code alignment and C function inlining                                    */
00150 /*===========================================================================*/
00151 
00152 #define U_INLINE __inline
00153 
00154 #ifdef _MSC_VER
00155 #define U_ALIGN_CODE(val)    __asm      align val
00156 #else
00157 #define U_ALIGN_CODE(val)
00158 #endif
00159       
00160 
00161 /*===========================================================================*/
00162 /* Programs used by ICU code                                                 */
00163 /*===========================================================================*/
00164 
00165 #define U_MAKE  "nmake"
00166 

Generated on Mon Mar 4 21:43:54 2002 for ICU 2.0 by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002