os/textandloc/fontservices/textshaperplugin/IcuSource/common/unicode/ppalmos.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/common/unicode/ppalmos.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,273 @@
     1.4 +/*
     1.5 +******************************************************************************
     1.6 +*
     1.7 +*   Copyright (C) 1997-2005, International Business Machines
     1.8 +*   Corporation and others.  All Rights Reserved.
     1.9 +*
    1.10 +******************************************************************************
    1.11 +*
    1.12 +*  FILE NAME : ppalmos.h
    1.13 +*
    1.14 +*   Date        Name        Description
    1.15 +*   05/10/04    Ken Krugler Creation (copied from pwin32.h & modified).
    1.16 +******************************************************************************
    1.17 +*/
    1.18 +
    1.19 +#ifndef U_PPALMOS_H
    1.20 +#define U_PPALMOS_H
    1.21 +
    1.22 + /**
    1.23 +  * \file
    1.24 +  * \brief Configuration constants for the Palm OS platform
    1.25 +  */
    1.26 +  
    1.27 +/* Define the platform we're on. */
    1.28 +#ifndef U_PALMOS
    1.29 +#define U_PALMOS
    1.30 +#endif
    1.31 +
    1.32 +/* _MSC_VER is used to detect the Microsoft compiler. */
    1.33 +#if defined(_MSC_VER)
    1.34 +#define U_INT64_IS_LONG_LONG 0
    1.35 +#else
    1.36 +#define U_INT64_IS_LONG_LONG 1
    1.37 +#endif
    1.38 +
    1.39 +/* Define whether inttypes.h is available */
    1.40 +#ifndef U_HAVE_INTTYPES_H
    1.41 +#define U_HAVE_INTTYPES_H 1
    1.42 +#endif
    1.43 +
    1.44 +/*
    1.45 + * Define what support for C++ streams is available.
    1.46 + *     If U_IOSTREAM_SOURCE is set to 199711, then <iostream> is available
    1.47 + * (1997711 is the date the ISO/IEC C++ FDIS was published), and then
    1.48 + * one should qualify streams using the std namespace in ICU header
    1.49 + * files.
    1.50 + *     If U_IOSTREAM_SOURCE is set to 198506, then <iostream.h> is
    1.51 + * available instead (198506 is the date when Stroustrup published
    1.52 + * "An Extensible I/O Facility for C++" at the summer USENIX conference).
    1.53 + *     If U_IOSTREAM_SOURCE is 0, then C++ streams are not available and
    1.54 + * support for them will be silently suppressed in ICU.
    1.55 + *
    1.56 + */
    1.57 +
    1.58 +#ifndef U_IOSTREAM_SOURCE
    1.59 +#define U_IOSTREAM_SOURCE 199711
    1.60 +#endif
    1.61 +
    1.62 +/* Determines whether specific types are available */
    1.63 +#ifndef U_HAVE_INT8_T
    1.64 +#define U_HAVE_INT8_T U_HAVE_INTTYPES_H
    1.65 +#endif
    1.66 +
    1.67 +#ifndef U_HAVE_UINT8_T
    1.68 +#define U_HAVE_UINT8_T U_HAVE_INTTYPES_H
    1.69 +#endif
    1.70 +
    1.71 +#ifndef U_HAVE_INT16_T
    1.72 +#define U_HAVE_INT16_T U_HAVE_INTTYPES_H
    1.73 +#endif
    1.74 +
    1.75 +#ifndef U_HAVE_UINT16_T
    1.76 +#define U_HAVE_UINT16_T U_HAVE_INTTYPES_H
    1.77 +#endif
    1.78 +
    1.79 +#ifndef U_HAVE_INT32_T
    1.80 +#define U_HAVE_INT32_T U_HAVE_INTTYPES_H
    1.81 +#endif
    1.82 +
    1.83 +#ifndef U_HAVE_UINT32_T
    1.84 +#define U_HAVE_UINT32_T U_HAVE_INTTYPES_H
    1.85 +#endif
    1.86 +
    1.87 +#ifndef U_HAVE_INT64_T
    1.88 +#define U_HAVE_INT64_T U_HAVE_INTTYPES_H
    1.89 +#endif
    1.90 +
    1.91 +#ifndef U_HAVE_UINT64_T
    1.92 +#define U_HAVE_UINT64_T U_HAVE_INTTYPES_H
    1.93 +#endif
    1.94 +
    1.95 +
    1.96 +/*===========================================================================*/
    1.97 +/* Generic data types                                                        */
    1.98 +/*===========================================================================*/
    1.99 +
   1.100 +/* If your platform does not have the <inttypes.h> header, you may
   1.101 +   need to edit the typedefs below. */
   1.102 +#if U_HAVE_INTTYPES_H
   1.103 +#include <inttypes.h>
   1.104 +#else /* U_HAVE_INTTYPES_H */
   1.105 +
   1.106 +#if ! U_HAVE_INT8_T
   1.107 +typedef signed char int8_t;
   1.108 +#endif
   1.109 +
   1.110 +#if ! U_HAVE_UINT8_T
   1.111 +typedef unsigned char uint8_t;
   1.112 +#endif
   1.113 +
   1.114 +#if ! U_HAVE_INT16_T
   1.115 +typedef signed short int16_t;
   1.116 +#endif
   1.117 +
   1.118 +#if ! U_HAVE_UINT16_T
   1.119 +typedef unsigned short uint16_t;
   1.120 +#endif
   1.121 +
   1.122 +#if ! U_HAVE_INT32_T
   1.123 +typedef signed int int32_t;
   1.124 +#endif
   1.125 +
   1.126 +#if ! U_HAVE_UINT32_T
   1.127 +typedef unsigned int uint32_t;
   1.128 +#endif
   1.129 +
   1.130 +#if ! U_HAVE_INT64_T
   1.131 +#if U_INT64_IS_LONG_LONG
   1.132 +    typedef signed long long int64_t;
   1.133 +#else
   1.134 +    typedef signed __int64 int64_t;
   1.135 +#endif
   1.136 +#endif
   1.137 +
   1.138 +#if ! U_HAVE_UINT64_T
   1.139 +#if U_INT64_IS_LONG_LONG
   1.140 +    typedef unsigned long long uint64_t;
   1.141 +#else
   1.142 +    typedef unsigned __int64 uint64_t;
   1.143 +#endif
   1.144 +#endif
   1.145 +#endif
   1.146 +
   1.147 +/*===========================================================================*/
   1.148 +/* Compiler and environment features                                         */
   1.149 +/*===========================================================================*/
   1.150 +
   1.151 +/* Define whether namespace is supported */
   1.152 +#ifndef U_HAVE_NAMESPACE
   1.153 +#define U_HAVE_NAMESPACE 1
   1.154 +#endif
   1.155 +
   1.156 +/* Determines the endianness of the platform */
   1.157 +#define U_IS_BIG_ENDIAN 0
   1.158 +
   1.159 +/* 1 or 0 to enable or disable threads.  If undefined, default is: enable threads. */
   1.160 +#define ICU_USE_THREADS 1
   1.161 +
   1.162 +#ifndef U_DEBUG
   1.163 +#ifdef _DEBUG
   1.164 +#define U_DEBUG 1
   1.165 +#else
   1.166 +#define U_DEBUG 0
   1.167 +#endif
   1.168 +#endif
   1.169 +
   1.170 +#ifndef U_RELEASE
   1.171 +#ifdef NDEBUG
   1.172 +#define U_RELEASE 1
   1.173 +#else
   1.174 +#define U_RELEASE 0
   1.175 +#endif
   1.176 +#endif
   1.177 +
   1.178 +/* Determine whether to disable renaming or not. This overrides the
   1.179 +   setting in umachine.h which is for all platforms. */
   1.180 +#ifndef U_DISABLE_RENAMING
   1.181 +#define U_DISABLE_RENAMING 0
   1.182 +#endif
   1.183 +
   1.184 +/* Determine whether to override new and delete. */
   1.185 +#ifndef U_OVERRIDE_CXX_ALLOCATION
   1.186 +#define U_OVERRIDE_CXX_ALLOCATION 1
   1.187 +#endif
   1.188 +/* Determine whether to override placement new and delete for STL. */
   1.189 +#ifndef U_HAVE_PLACEMENT_NEW
   1.190 +#define U_HAVE_PLACEMENT_NEW 0
   1.191 +#endif
   1.192 +/* Determine whether to override new and delete for MFC. */
   1.193 +#if !defined(U_HAVE_DEBUG_LOCATION_NEW) && defined(_MSC_VER)
   1.194 +#define U_HAVE_DEBUG_LOCATION_NEW 0
   1.195 +#endif
   1.196 +
   1.197 +/* Determine whether to enable tracing. */
   1.198 +#ifndef U_ENABLE_TRACING
   1.199 +#define U_ENABLE_TRACING 1
   1.200 +#endif
   1.201 +
   1.202 +/* Do we allow ICU users to use the draft APIs by default? */
   1.203 +#ifndef U_DEFAULT_SHOW_DRAFT
   1.204 +#define U_DEFAULT_SHOW_DRAFT 1
   1.205 +#endif
   1.206 +
   1.207 +/* Define the library suffix in a C syntax. */
   1.208 +#define U_HAVE_LIB_SUFFIX 0
   1.209 +#define U_LIB_SUFFIX_C_NAME 
   1.210 +#define U_LIB_SUFFIX_C_NAME_STRING ""
   1.211 +
   1.212 +/*===========================================================================*/
   1.213 +/* Information about wchar support                                           */
   1.214 +/*===========================================================================*/
   1.215 +
   1.216 +#define U_HAVE_WCHAR_H 1
   1.217 +#define U_SIZEOF_WCHAR_T 2
   1.218 +
   1.219 +#define U_HAVE_WCSCPY    0
   1.220 +
   1.221 +/*===========================================================================*/
   1.222 +/* Information about POSIX support                                           */
   1.223 +/*===========================================================================*/
   1.224 +
   1.225 +
   1.226 +/* TODO: Fix Palm OS's determination of a timezone */
   1.227 +#if 0
   1.228 +#define U_TZSET         _tzset
   1.229 +#endif
   1.230 +#if 0
   1.231 +#define U_TIMEZONE      _timezone
   1.232 +#endif
   1.233 +#if 0
   1.234 +#define U_TZNAME        _tzname
   1.235 +#endif
   1.236 +
   1.237 +#define U_HAVE_MMAP 0
   1.238 +#define U_HAVE_POPEN 0
   1.239 +
   1.240 +/*===========================================================================*/
   1.241 +/* Symbol import-export control                                              */
   1.242 +/*===========================================================================*/
   1.243 +
   1.244 +#define U_EXPORT
   1.245 +#define U_EXPORT2
   1.246 +#define U_IMPORT
   1.247 +
   1.248 +/*===========================================================================*/
   1.249 +/* Code alignment and C function inlining                                    */
   1.250 +/*===========================================================================*/
   1.251 +
   1.252 +#ifndef U_INLINE
   1.253 +#   ifdef __cplusplus
   1.254 +#       define U_INLINE inline
   1.255 +#   else
   1.256 +#       define U_INLINE __inline
   1.257 +#   endif
   1.258 +#endif
   1.259 +
   1.260 +#if defined(_MSC_VER) && defined(_M_IX86)
   1.261 +#define U_ALIGN_CODE(val)    __asm      align val
   1.262 +#else
   1.263 +#define U_ALIGN_CODE(val)
   1.264 +#endif
   1.265 +
   1.266 +
   1.267 +/*===========================================================================*/
   1.268 +/* Programs used by ICU code                                                 */
   1.269 +/*===========================================================================*/
   1.270 +
   1.271 +#ifndef U_MAKE
   1.272 +#define U_MAKE  "nmake"
   1.273 +#define U_MAKE_IS_NMAKE 1
   1.274 +#endif
   1.275 +
   1.276 +#endif
   1.277 \ No newline at end of file