home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / common / pwin32.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-09  |  2.7 KB  |  89 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. *******************************************************************************
  21. */
  22.  
  23. /* Define the platform we're on. */
  24. #ifndef WIN32
  25. #define WIN32
  26. #endif
  27.  
  28. /* Define whether inttypes.h is available */
  29. #define HAVE_INTTYPES_H 0
  30.  
  31. /* Determines whether specific types are available */
  32. #define HAVE_INT8_T 0
  33. #define HAVE_UINT8_T 0
  34. #define HAVE_INT16_T 0
  35. #define HAVE_UINT16_T 0
  36. #define HAVE_INT32_T 0
  37. #define HAVE_UINT32_T 0
  38. #define HAVE_BOOL_T 0
  39.  
  40. /* Determines the endianness of the platform */
  41. #define U_IS_BIG_ENDIAN 0
  42.  
  43. /*===========================================================================*/
  44. /* Generic data types                                                        */
  45. /*===========================================================================*/
  46.  
  47. /* If your platform does not have the <inttypes.h> header, you may
  48.    need to edit the typedefs below. */
  49. #if HAVE_INTTYPES_H
  50. #include <inttypes.h>
  51. #else
  52.  
  53. #if ! HAVE_INT8_T
  54. typedef signed char int8_t;
  55. #endif
  56.  
  57. #if ! HAVE_UINT8_T
  58. typedef unsigned char uint8_t;
  59. #endif
  60.  
  61. #if ! HAVE_INT16_T
  62. typedef signed short int16_t;
  63. #endif
  64.  
  65. #if ! HAVE_UINT16_T
  66. typedef unsigned short uint16_t;
  67. #endif
  68.  
  69. #if ! HAVE_INT32_T
  70. typedef signed long int32_t;
  71. #endif
  72.  
  73. #if ! HAVE_UINT32_T
  74. typedef unsigned long uint32_t;
  75. #endif
  76.  
  77. #endif
  78.  
  79. #include <limits.h>
  80. #define T_INT32_MAX (LONG_MAX)
  81.  
  82. /*===========================================================================*/
  83. /* Symbol import-export control                                              */
  84. /*===========================================================================*/
  85.  
  86. #define U_EXPORT __declspec(dllexport)
  87. #define U_EXPORT2
  88. #define U_IMPORT __declspec(dllimport)
  89.