~ubuntu-branches/ubuntu/gutsy/icu/gutsy-updates

« back to all changes in this revision

Viewing changes to source/common/unicode/pmacos.h

  • Committer: Package Import Robot
  • Author(s): Jay Berkenbilt
  • Date: 2005-11-19 11:29:31 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20051119112931-vcizkrp10tli4enw
Tags: 3.4-3
Explicitly build with g++ 3.4.  The current ICU fails its test suite
with 4.0 but not with 3.4.  Future versions should work properly with
4.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
******************************************************************************
3
 
*
4
 
*   Copyright (C) 1997-2001, International Business Machines
5
 
*   Corporation and others.  All Rights Reserved.
6
 
*
7
 
******************************************************************************
8
 
*
9
 
*  FILE NAME : pmacos.h
10
 
*
11
 
*   Date        Name        Description
12
 
*   05/13/98    nos         Creation (content moved here from ptypes.h).
13
 
*   03/02/99    stephen     Added AS400 support.
14
 
*   03/30/99    stephen     Added Linux support.
15
 
*   04/13/99    stephen     Reworked for autoconf.
16
 
*   08/26/00    srl         Moved to pmacos.h
17
 
******************************************************************************
18
 
*/
19
 
 
20
 
/* Define the platform we're on. */
21
 
#ifndef macintosh
22
 
#define macintosh
23
 
#endif
24
 
 
25
 
#ifndef XP_MAC
26
 
#define  XP_MAC
27
 
#endif
28
 
 
29
 
/* We want the console window (argc/argv) */
30
 
/*
31
 
#ifndef XP_MAC_CONSOLE
32
 
#define  XP_MAC_CONSOLE
33
 
#endif
34
 
*/
35
 
 
36
 
/* Define whether inttypes.h is available */
37
 
#define U_HAVE_INTTYPES_H 0
38
 
 
39
 
/* Define whether namespace is supported */
40
 
#define U_HAVE_NAMESPACE 1
41
 
 
42
 
/*
43
 
 * Define what support for C++ streams is available.
44
 
 *     If U_IOSTREAM_SOURCE is set to 199711, then <iostream> is available
45
 
 * (1997711 is the date the ISO/IEC C++ FDIS was published), and then
46
 
 * one should qualify streams using the std namespace in ICU header
47
 
 * files.
48
 
 *     If U_IOSTREAM_SOURCE is set to 198506, then <iostream.h> is
49
 
 * available instead (198506 is the date when Stroustrup published
50
 
 * "An Extensible I/O Facility for C++" at the summer USENIX conference).
51
 
 *     If U_IOSTREAM_SOURCE is 0, then C++ streams are not available and
52
 
 * support for them will be silently suppressed in ICU.
53
 
 *
54
 
 */
55
 
 
56
 
#ifndef U_IOSTREAM_SOURCE
57
 
#define U_IOSTREAM_SOURCE 198506    /* Wish we could use 199711 but that breaks while compiling chariter.cpp */
58
 
#endif
59
 
 
60
 
/* Determines whether specific types are available */
61
 
#define HAVE_INT8_T 0
62
 
#define HAVE_UINT8_T 0
63
 
#define HAVE_INT16_T 0
64
 
#define HAVE_UINT16_T 0
65
 
#define HAVE_INT32_T 0
66
 
#define HAVE_UINT32_T 0
67
 
#define HAVE_BOOL_T 0
68
 
 
69
 
/* Determines the endianness of the platform */
70
 
#define U_IS_BIG_ENDIAN 1
71
 
 
72
 
/*===========================================================================*/
73
 
/* Generic data types                                                        */
74
 
/*===========================================================================*/
75
 
 
76
 
/* If your platform does not have the <inttypes.h> header, you may
77
 
   need to edit the typedefs below. */
78
 
#if U_HAVE_INTTYPES_H
79
 
#include <inttypes.h>
80
 
#else
81
 
 
82
 
#if ! HAVE_INT8_T
83
 
typedef signed char int8_t;
84
 
#endif
85
 
 
86
 
#if ! HAVE_UINT8_T
87
 
typedef unsigned char uint8_t;
88
 
#endif
89
 
 
90
 
#if ! HAVE_INT16_T
91
 
typedef signed short int16_t;
92
 
#endif
93
 
 
94
 
#if ! HAVE_UINT16_T
95
 
typedef unsigned short uint16_t;
96
 
#endif
97
 
 
98
 
#if ! HAVE_INT32_T
99
 
#   if defined(_LP64)
100
 
      typedef signed int  int32_t;
101
 
#   else
102
 
      typedef signed long int32_t;
103
 
#   endif
104
 
#endif
105
 
 
106
 
#if ! HAVE_UINT32_T
107
 
#   if defined(_LP64)
108
 
      typedef unsigned int  uint32_t;
109
 
#   else
110
 
      typedef unsigned long uint32_t;
111
 
#   endif
112
 
#endif
113
 
 
114
 
#endif
115
 
 
116
 
/*===========================================================================*/
117
 
/* Character data types                                                      */
118
 
/*===========================================================================*/
119
 
 
120
 
#define U_HAVE_WCHAR_H      0
121
 
#define U_SIZEOF_WCHAR_T    2
122
 
 
123
 
#define U_HAVE_WCSCPY       0
124
 
 
125
 
/*===========================================================================*/
126
 
/* Symbol import-export control                                              */
127
 
/*===========================================================================*/
128
 
 
129
 
/* should be pragmas? */
130
 
 
131
 
#define U_EXPORT /*__declspec(dllexport)*/
132
 
#define U_EXPORT2
133
 
#define U_IMPORT /*__declspec(dllimport)*/
134
 
 
135
 
/*===========================================================================*/
136
 
/* Programs used by ICU code                                                 */
137
 
/*===========================================================================*/
138
 
 
139
 
#define U_MAKE  "Make"
140