3 * Moscow Center for SPARC Technology
8 * This material is provided "as is", with absolutely no warranty expressed
9 * or implied. Any use is at your own risk.
11 * Permission to use or copy this software for any purpose is hereby granted
12 * without fee, provided the above notices are retained on all copies.
13 * Permission to modify the code and to distribute modified code is granted,
14 * provided the above notices are retained, and a notice that the code was
15 * modified is included with the above copyright notice.
20 * Purpose of this file :
22 * To hold COMPILER-SPECIFIC portion of STLport settings.
23 * In general, user should not edit this file unless
24 * using the compiler not recognized below.
26 * If your compiler is not being recognized yet,
27 * please look for definitions of macros in stl_mycomp.h,
28 * copy stl_mycomp.h to stl_YOUR_COMPILER_NAME,
29 * adjust flags for your compiler, and add <include config/stl_YOUR_COMPILER_NAME>
30 * to the secton controlled by unique macro defined internaly by your compiler.
32 * To change user-definable settings, please edit <user_config.h>
36 #ifndef __stl_config__system_h
37 #define __stl_config__system_h
40 # include <stl/config/_solaris.h>
41 # if defined (__GNUC__)
42 # include <stl/config/_gcc.h>
43 # elif defined (__SUNPRO_CC) || defined (__SUNPRO_C)
44 # include <stl/config/_sunprocc.h>
47 # include <stl/config/_kai.h>
50 # elif defined (__APOGEE__) /* Apogee 4.x */
51 # include <stl/config/_apcc.h>
52 # elif defined (__FCC_VERSION) /* Fujitsu Compiler, v4.0 assumed */
53 # include <stl/config/_fujitsu.h>
55 #elif defined (__hpux)
56 # include <stl/config/_hpux.h>
57 # if defined (__GNUC__)
58 # include <stl/config/_gcc.h>
59 # elif defined (__HP_aCC)
60 # include <stl/config/_hpacc.h>
62 #elif defined (ANDROID)
63 /* Android mobile phone platform. Somewhat but not entirely GNU/Linux-like */
64 # include <stl/config/_android.h>
65 #elif defined (linux) || defined (__linux__)
66 # include <stl/config/_linux.h>
67 # if defined (__BORLANDC__)
68 # include <stl/config/_bc.h> /* Borland C++ 0x570 */
69 /* Intel's icc define __GNUC__! */
70 # elif defined (__INTEL_COMPILER)
71 # include <stl/config/_icc.h>
72 # elif defined (__GNUC__)
73 # include <stl/config/_gcc.h>
77 # include <stl/config/_kai.h>
80 #elif defined (__FreeBSD__)
81 # include <stl/config/_freebsd.h>
82 # if defined (__GNUC__)
83 # include <stl/config/_gcc.h>
85 #elif defined (__OpenBSD__)
86 # include <stl/config/_openbsd.h>
87 # if defined (__GNUC__)
88 # include <stl/config/_gcc.h>
90 #elif defined (__sgi) /* IRIX? */
91 # define _STLP_PLATFORM "SGI Irix"
92 # if defined (__GNUC__)
93 # include <stl/config/_gcc.h>
95 # include <stl/config/_sgi.h>
97 #elif defined (__OS400__) /* AS/400 C++ */
98 # define _STLP_PLATFORM "OS 400"
99 # if defined (__GNUC__)
100 # include <stl/config/_gcc.h>
102 # include <stl/config/_as400.h>
105 # include <stl/config/_aix.h>
106 # if defined (__xlC__) || defined (__IBMC__) || defined ( __IBMCPP__ )
107 /* AIX xlC, Visual Age C++ , OS-390 C++ */
108 # include <stl/config/_ibm.h>
110 #elif defined (_CRAY) /* Cray C++ 3.4 or 3.5 */
111 # define _STLP_PLATFORM "Cray"
112 # include <config/_cray.h>
113 #elif defined (__DECCXX) || defined (__DECC)
114 # define _STLP_PLATFORM "DECC"
116 # include <stl/config/_dec_vms.h>
118 # include <stl/config/_dec.h>
120 #elif defined (macintosh) || defined (_MAC)
121 # include <stl/config/_mac.h>
122 # if defined (__MWERKS__)
123 # include <stl/config/_mwerks.h>
125 #elif defined (__APPLE__)
126 # include <stl/config/_macosx.h>
128 # include <stl/config/_gcc.h>
130 #elif defined (__CYGWIN__)
131 # include <stl/config/_cygwin.h>
132 # if defined (__GNUC__)
133 # include <stl/config/_gcc.h>
135 #elif defined (__MINGW32__)
136 # define _STLP_PLATFORM "MinGW"
137 # if defined (__GNUC__)
138 # include <stl/config/_gcc.h>
140 # include <stl/config/_windows.h>
141 #elif defined (_WIN32) || defined (__WIN32) || defined (WIN32) || defined (__WIN32__) || \
142 defined (__WIN16) || defined (WIN16) || defined (_WIN16)
143 # if defined ( __BORLANDC__ ) /* Borland C++ / CodeGear C++ */
144 # include <stl/config/_bc.h>
145 # elif defined (__WATCOM_CPLUSPLUS__) || defined (__WATCOMC__) /* Watcom C++ */
146 # include <stl/config/_watcom.h>
147 # elif defined (__COMO__) || defined (__COMO_VERSION_)
148 # include <stl/config/_como.h>
149 # elif defined (__DMC__) /* Digital Mars C++ */
150 # include <stl/config/_dm.h>
151 # elif defined (__ICL) /* Intel reference compiler for Win */
152 # include <stl/config/_intel.h>
153 # elif defined (__MWERKS__)
154 # include <stl/config/_mwerks.h>
155 # elif defined (_MSC_VER) && (_MSC_VER >= 1200) && defined (UNDER_CE)
156 /* Microsoft eMbedded Visual C++ 3.0, 4.0 (.NET) */
157 # include <stl/config/_evc.h>
158 # elif defined (_MSC_VER)
159 /* Microsoft Visual C++ 6.0, 7.0, 7.1, 8.0 */
160 # include <stl/config/_msvc.h>
163 # include <stl/config/_windows.h>
165 # error Unknown platform !!
168 #if !defined (_STLP_COMPILER)
169 /* Unable to identify the compiler, issue error diagnostic.
170 * Edit <config/stl_mycomp.h> to set STLport up for your compiler. */
171 # include <stl/config/stl_mycomp.h>
174 #endif /* __stl_config__system_h */