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