home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / common / pos400.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-09  |  2.7 KB  |  90 lines

  1. /*
  2. *******************************************************************************
  3. *                                                                             *
  4. * COPYRIGHT:                                                                  *
  5. *   (C) Copyright Taligent, Inc.,  1997                                       *
  6. *   (C) Copyright International Business Machines Corporation,  1997-1998     *
  7. *   Licensed Material - Program-Property of IBM - All Rights Reserved.        *
  8. *   US Government Users Restricted Rights - Use, duplication, or disclosure   *
  9. *   restricted by GSA ADP Schedule Contract with IBM Corp.                    *
  10. *                                                                             *
  11. *******************************************************************************
  12. *
  13. *  FILE NAME : platform.h
  14. *
  15. *   Date        Name        Description
  16. *   05/13/98    nos         Creation (content moved here from ptypes.h).
  17. *   03/02/99    stephen     Added AS400 support.
  18. *   03/30/99    stephen     Added Linux support.
  19. *   04/13/99    stephen     Reworked for autoconf.
  20. *   09/21/99    barry       Created new for OS/400 platform.
  21. *******************************************************************************
  22. */
  23.  
  24. /* Define the platform we're on. */
  25. #ifndef OS400
  26. #define OS400
  27. #endif
  28.  
  29. /* Define whether inttypes.h is available */
  30. #define HAVE_INTTYPES_H 0
  31.  
  32. /* Determines whether specific types are available */
  33. #define HAVE_INT8_T 0
  34. #define HAVE_UINT8_T 0
  35. #define HAVE_INT16_T 0
  36. #define HAVE_UINT16_T 0
  37. #define HAVE_INT32_T 0
  38. #define HAVE_UINT32_T 0
  39. #define HAVE_BOOL_T 0
  40.  
  41. /* Determines the endianness of the platform */
  42. #define U_IS_BIG_ENDIAN 1
  43.  
  44. /*===========================================================================*/
  45. /* Generic data types                                                        */
  46. /*===========================================================================*/
  47.  
  48. /* If your platform does not have the <inttypes.h> header, you may
  49.    need to edit the typedefs below. */
  50. #if HAVE_INTTYPES_H
  51. #include <inttypes.h>
  52. #else
  53.  
  54. #if ! HAVE_INT8_T
  55. typedef signed char int8_t;
  56. #endif
  57.  
  58. #if ! HAVE_UINT8_T
  59. typedef unsigned char uint8_t;
  60. #endif
  61.  
  62. #if ! HAVE_INT16_T
  63. typedef signed short int16_t;
  64. #endif
  65.  
  66. #if ! HAVE_UINT16_T
  67. typedef unsigned short uint16_t;
  68. #endif
  69.  
  70. #if ! HAVE_INT32_T
  71. typedef signed long int32_t;
  72. #endif
  73.  
  74. #if ! HAVE_UINT32_T
  75. typedef unsigned long uint32_t;
  76. #endif
  77.  
  78. #endif
  79.  
  80. #include <limits.h>
  81. #define T_INT32_MAX (LONG_MAX)
  82.  
  83. /*===========================================================================*/
  84. /* Symbol import-export control                                              */
  85. /*===========================================================================*/
  86.  
  87. #define U_EXPORT
  88. #define U_EXPORT2
  89. #define U_IMPORT
  90.