00001 /* 00002 * Copyright 1999-2000,2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00030 /* Define the platform we're on. */ 00031 #ifndef OS400 00032 #define OS400 00033 #endif 00034 00035 /* Define whether inttypes.h is available */ 00036 #define HAVE_INTTYPES_H 0 00037 00038 /* Determines whether specific types are available */ 00039 #define HAVE_INT8_T 0 00040 #define HAVE_UINT8_T 0 00041 #define HAVE_INT16_T 0 00042 #define HAVE_UINT16_T 0 00043 #define HAVE_INT32_T 0 00044 #define HAVE_UINT32_T 0 00045 #define HAVE_BOOL_T 0 00046 00047 /* Determines the endianness of the platform */ 00048 #define U_IS_BIG_ENDIAN 1 00049 00050 /*===========================================================================*/ 00051 /* Generic data types */ 00052 /*===========================================================================*/ 00053 00054 /* If your platform does not have the <inttypes.h> header, you may 00055 need to edit the typedefs below. */ 00056 #if HAVE_INTTYPES_H 00057 #include <inttypes.h> 00058 #else 00059 00060 #if ! HAVE_INT8_T 00061 typedef signed char int8_t; 00062 #endif 00063 00064 #if ! HAVE_UINT8_T 00065 typedef unsigned char uint8_t; 00066 #endif 00067 00068 #if ! HAVE_INT16_T 00069 typedef signed short int16_t; 00070 #endif 00071 00072 #if ! HAVE_UINT16_T 00073 typedef unsigned short uint16_t; 00074 #endif 00075 00076 #if ! HAVE_INT32_T 00077 typedef signed long int32_t; 00078 #endif 00079 00080 #if ! HAVE_UINT32_T 00081 typedef unsigned long uint32_t; 00082 #endif 00083 00084 #endif 00085 00086 #include <limits.h> 00087 #define T_INT32_MAX (LONG_MAX) 00088 00089 /*===========================================================================*/ 00090 /* Symbol import-export control */ 00091 /*===========================================================================*/ 00092 00093 #define U_EXPORT 00094 #define U_EXPORT2 00095 #define U_IMPORT