00001 /* 00002 ****************************************************************************** 00003 * 00004 * Copyright (C) 1997-2001, International Business Machines 00005 * Corporation and others. All Rights Reserved. 00006 * 00007 ****************************************************************************** 00008 * 00009 * FILE NAME : pmacos.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 * 08/26/00 srl Moved to pmacos.h 00017 ****************************************************************************** 00018 */ 00019 00020 /* Define the platform we're on. */ 00021 #ifndef macintosh 00022 #define macintosh 00023 #endif 00024 00025 #ifndef XP_MAC 00026 #define XP_MAC 00027 #endif 00028 00029 /* We want the console window (argc/argv) */ 00030 #ifndef XP_MAC_CONSOLE 00031 #define XP_MAC_CONSOLE 00032 #endif 00033 00034 /* Define whether inttypes.h is available */ 00035 #define U_HAVE_INTTYPES_H 0 00036 00037 /* 00038 * Define what support for C++ streams is available. 00039 * If U_IOSTREAM_SOURCE is set to 199711, then <iostream> is available 00040 * (1997711 is the date the ISO/IEC C++ FDIS was published), and then 00041 * one should qualify streams using the std namespace in ICU header 00042 * files. 00043 * If U_IOSTREAM_SOURCE is set to 198506, then <iostream.h> is 00044 * available instead (198506 is the date when Stroustrup published 00045 * "An Extensible I/O Facility for C++" at the summer USENIX conference). 00046 * If U_IOSTREAM_SOURCE is 0, then C++ streams are not available and 00047 * support for them will be silently suppressed in ICU. 00048 * 00049 */ 00050 00051 #ifndef U_IOSTREAM_SOURCE 00052 #define U_IOSTREAM_SOURCE 198506 /* Wish we could use 199711 but that breaks while compiling chariter.cpp */ 00053 #endif 00054 00055 /* Determines whether specific types are available */ 00056 #define HAVE_INT8_T 0 00057 #define HAVE_UINT8_T 0 00058 #define HAVE_INT16_T 0 00059 #define HAVE_UINT16_T 0 00060 #define HAVE_INT32_T 0 00061 #define HAVE_UINT32_T 0 00062 #define HAVE_BOOL_T 0 00063 00064 /* Determines the endianness of the platform */ 00065 #define U_IS_BIG_ENDIAN 1 00066 00067 /*===========================================================================*/ 00068 /* Generic data types */ 00069 /*===========================================================================*/ 00070 00071 /* If your platform does not have the <inttypes.h> header, you may 00072 need to edit the typedefs below. */ 00073 #if U_HAVE_INTTYPES_H 00074 #include <inttypes.h> 00075 #else 00076 00077 #if ! HAVE_INT8_T 00078 typedef signed char int8_t; 00079 #endif 00080 00081 #if ! HAVE_UINT8_T 00082 typedef unsigned char uint8_t; 00083 #endif 00084 00085 #if ! HAVE_INT16_T 00086 typedef signed short int16_t; 00087 #endif 00088 00089 #if ! HAVE_UINT16_T 00090 typedef unsigned short uint16_t; 00091 #endif 00092 00093 #if ! HAVE_INT32_T 00094 # if defined(_LP64) 00095 typedef signed int int32_t; 00096 # else 00097 typedef signed long int32_t; 00098 # endif 00099 #endif 00100 00101 #if ! HAVE_UINT32_T 00102 # if defined(_LP64) 00103 typedef unsigned int uint32_t; 00104 # else 00105 typedef unsigned long uint32_t; 00106 # endif 00107 #endif 00108 00109 #endif 00110 00111 /*===========================================================================*/ 00112 /* Character data types */ 00113 /*===========================================================================*/ 00114 00115 #define U_HAVE_WCHAR_H 0 00116 #define U_SIZEOF_WCHAR_T 2 00117 00118 #define U_HAVE_WCSCPY 0 00119 00120 /*===========================================================================*/ 00121 /* Symbol import-export control */ 00122 /*===========================================================================*/ 00123 00124 /* should be pragmas? */ 00125 00126 #define U_EXPORT /*__declspec(dllexport)*/ 00127 #define U_EXPORT2 00128 #define U_IMPORT /*__declspec(dllimport)*/ 00129 00130 /*===========================================================================*/ 00131 /* Programs used by ICU code */ 00132 /*===========================================================================*/ 00133 00134 #define U_MAKE "Make" 00135