1 | /* |
---|
2 | * Licensed to the Apache Software Foundation (ASF) under one or more |
---|
3 | * contributor license agreements. See the NOTICE file distributed with |
---|
4 | * this work for additional information regarding copyright ownership. |
---|
5 | * The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
6 | * (the "License"); you may not use this file except in compliance with |
---|
7 | * the License. You may obtain a copy of the License at |
---|
8 | * |
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0 |
---|
10 | * |
---|
11 | * Unless required by applicable law or agreed to in writing, software |
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, |
---|
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
14 | * See the License for the specific language governing permissions and |
---|
15 | * limitations under the License. |
---|
16 | */ |
---|
17 | |
---|
18 | /* |
---|
19 | * $Id: pos400.h 568078 2007-08-21 11:43:25Z amassari $ |
---|
20 | */ |
---|
21 | |
---|
22 | /* Define the platform we're on. */ |
---|
23 | #ifndef OS400 |
---|
24 | #define OS400 |
---|
25 | #endif |
---|
26 | |
---|
27 | /* Define whether inttypes.h is available */ |
---|
28 | #define HAVE_INTTYPES_H 0 |
---|
29 | |
---|
30 | /* Determines whether specific types are available */ |
---|
31 | #define HAVE_INT8_T 0 |
---|
32 | #define HAVE_UINT8_T 0 |
---|
33 | #define HAVE_INT16_T 0 |
---|
34 | #define HAVE_UINT16_T 0 |
---|
35 | #define HAVE_INT32_T 0 |
---|
36 | #define HAVE_UINT32_T 0 |
---|
37 | #define HAVE_BOOL_T 0 |
---|
38 | |
---|
39 | /* Determines the endianness of the platform */ |
---|
40 | #define U_IS_BIG_ENDIAN 1 |
---|
41 | |
---|
42 | /*===========================================================================*/ |
---|
43 | /* Generic data types */ |
---|
44 | /*===========================================================================*/ |
---|
45 | |
---|
46 | /* If your platform does not have the <inttypes.h> header, you may |
---|
47 | need to edit the typedefs below. */ |
---|
48 | #if HAVE_INTTYPES_H |
---|
49 | #include <inttypes.h> |
---|
50 | #else |
---|
51 | |
---|
52 | #if ! HAVE_INT8_T |
---|
53 | typedef signed char int8_t; |
---|
54 | #endif |
---|
55 | |
---|
56 | #if ! HAVE_UINT8_T |
---|
57 | typedef unsigned char uint8_t; |
---|
58 | #endif |
---|
59 | |
---|
60 | #if ! HAVE_INT16_T |
---|
61 | typedef signed short int16_t; |
---|
62 | #endif |
---|
63 | |
---|
64 | #if ! HAVE_UINT16_T |
---|
65 | typedef unsigned short uint16_t; |
---|
66 | #endif |
---|
67 | |
---|
68 | #if ! HAVE_INT32_T |
---|
69 | typedef signed long int32_t; |
---|
70 | #endif |
---|
71 | |
---|
72 | #if ! HAVE_UINT32_T |
---|
73 | typedef unsigned long uint32_t; |
---|
74 | #endif |
---|
75 | |
---|
76 | #endif |
---|
77 | |
---|
78 | #include <limits.h> |
---|
79 | #define T_INT32_MAX (LONG_MAX) |
---|
80 | |
---|
81 | /*===========================================================================*/ |
---|
82 | /* Symbol import-export control */ |
---|
83 | /*===========================================================================*/ |
---|
84 | |
---|
85 | #define U_EXPORT |
---|
86 | #define U_EXPORT2 |
---|
87 | #define U_IMPORT |
---|