http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Download
Installation
Build

API Docs
Samples
Schema

FAQs
Programming
Migration

Releases
Bug-Reporting
Feedback

Y2K Compliance
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

AutoSense.hpp

Go to the documentation of this file.
00001 /*
00002  * The Apache Software License, Version 1.1
00003  *
00004  * Copyright (c) 1999-2002 The Apache Software Foundation.  All rights
00005  * reserved.
00006  *
00007  * Redistribution and use in source and binary forms, with or without
00008  * modification, are permitted provided that the following conditions
00009  * are met:
00010  *
00011  * 1. Redistributions of source code must retain the above copyright
00012  *    notice, this list of conditions and the following disclaimer.
00013  *
00014  * 2. Redistributions in binary form must reproduce the above copyright
00015  *    notice, this list of conditions and the following disclaimer in
00016  *    the documentation and/or other materials provided with the
00017  *    distribution.
00018  *
00019  * 3. The end-user documentation included with the redistribution,
00020  *    if any, must include the following acknowledgment:
00021  *       "This product includes software developed by the
00022  *        Apache Software Foundation (http://www.apache.org/)."
00023  *    Alternately, this acknowledgment may appear in the software itself,
00024  *    if and wherever such third-party acknowledgments normally appear.
00025  *
00026  * 4. The names "Xerces" and "Apache Software Foundation" must
00027  *    not be used to endorse or promote products derived from this
00028  *    software without prior written permission. For written
00029  *    permission, please contact apache\@apache.org.
00030  *
00031  * 5. Products derived from this software may not be called "Apache",
00032  *    nor may "Apache" appear in their name, without prior written
00033  *    permission of the Apache Software Foundation.
00034  *
00035  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
00036  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00037  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00038  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
00039  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00040  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00041  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
00042  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00043  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00044  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
00045  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00046  * SUCH DAMAGE.
00047  * ====================================================================
00048  *
00049  * This software consists of voluntary contributions made by many
00050  * individuals on behalf of the Apache Software Foundation, and was
00051  * originally based on software copyright (c) 1999, International
00052  * Business Machines, Inc., http://www.ibm.com .  For more information
00053  * on the Apache Software Foundation, please see
00054  * <http://www.apache.org/>.
00055  */
00056 
00057 /*
00058  * $Log: AutoSense.hpp,v $
00059  * Revision 1.3  2002/03/04 20:31:14  tng
00060  * [Bug 2868] AIX 4.3.3 mutex/atomic-operation changes for build.
00061  *
00062  * Revision 1.2  2002/02/27 22:38:34  peiyongz
00063  * Bug# 6445 Caldera (SCO) OpenServer Port : patch from Martin Kalen
00064  *
00065  * Revision 1.1.1.1  2002/02/01 22:22:09  peiyongz
00066  * sane_include
00067  *
00068  * Revision 1.21  2001/11/29 18:25:18  tng
00069  * FreeBSD support by Michael Huedepohl.
00070  *
00071  * Revision 1.20  2001/05/11 13:26:26  tng
00072  * Copyright update.
00073  *
00074  * Revision 1.19  2001/03/23 19:01:25  tng
00075  * [Bug 1018]  AutoSense looks for "IRIX" when it should look for "sgi" or "__sgi".  By Jeff Harrell.
00076  *
00077  * Revision 1.18  2001/02/09 14:40:01  tng
00078  * Update support for SCO UnixWare 7 (gcc).  Tested under UnixWare 7.1.1 with gcc version 2.95.2 19991024 (release) with gmake 3.79.1.  Updated by Martin Kalen.
00079  *
00080  * Revision 1.17  2001/01/26 21:59:25  tng
00081  * Change bug-todo list to xml format.  Other documentation fixes.
00082  *
00083  * Revision 1.16  2000/10/09 18:15:43  jberry
00084  * Modify sensing of Mac OS X.
00085  * PR:
00086  * Obtained from:
00087  * Submitted by:
00088  * Reviewed by:
00089  * PR:
00090  * Obtained from:
00091  * Submitted by:
00092  * Reviewed by:
00093  *
00094  * Revision 1.15  2000/09/21 00:54:18  aruna1
00095  * OS2 related changes given by Bill Schindler
00096  *
00097  * Revision 1.14  2000/08/01 18:26:02  aruna1
00098  * Tru64 support added
00099  *
00100  * Revision 1.13  2000/07/18 18:25:58  andyh
00101  * Mac OS update.
00102  * Contributed by James Berry <jberry@criticalpath.com>
00103  *
00104  * Revision 1.12  2000/04/04 20:11:29  abagchi
00105  * Added PTX support
00106  *
00107  * Revision 1.11  2000/03/02 19:54:37  roddey
00108  * This checkin includes many changes done while waiting for the
00109  * 1.1.0 code to be finished. I can't list them all here, but a list is
00110  * available elsewhere.
00111  *
00112  * Revision 1.10  2000/03/02 01:51:00  aruna1
00113  * Sun CC 5.0 related changes
00114  *
00115  * Revision 1.9  2000/02/24 20:05:23  abagchi
00116  * Swat for removing Log from API docs
00117  *
00118  * Revision 1.8  2000/02/22 01:00:10  aruna1
00119  * GNUGDefs references removed. Now only GCCDefs is used instead
00120  *
00121  * Revision 1.7  2000/02/06 07:48:00  rahulj
00122  * Year 2K copyright swat.
00123  *
00124  * Revision 1.6  2000/02/01 23:43:22  abagchi
00125  * AS/400 related change
00126  *
00127  * Revision 1.5  2000/01/21 22:12:29  abagchi
00128  * OS390 Change: changed OE390 to OS390
00129  *
00130  * Revision 1.4  1999/12/18 00:47:01  rahulj
00131  * Merged in some changes for OS390.
00132  *
00133  * Revision 1.3  1999/12/17 01:28:53  rahulj
00134  * Merged in changes submitted for UnixWare 7 port. Platform
00135  * specific files are still missing.
00136  *
00137  * Revision 1.2  1999/12/01 17:16:16  rahulj
00138  * Added support for IRIX 6.5.5 using SGI MIPSpro C++ 7.3 and 7.21 generating 32 bit objects. Changes submitted by Marc Stuessel
00139  *
00140  * Revision 1.1.1.1  1999/11/09 01:03:55  twl
00141  * Initial checkin
00142  *
00143  * Revision 1.2  1999/11/08 20:45:03  rahul
00144  * Swat for adding in Product name and CVS comment log variable.
00145  *
00146  */
00147 
00148 #ifndef AUTOSENSE_HPP
00149 #define AUTOSENSE_HPP
00150 
00151 // ---------------------------------------------------------------------------
00152 //  This section attempts to auto detect the operating system. It will set
00153 //  up XercesC specific defines that are used by the rest of the code.
00154 // ---------------------------------------------------------------------------
00155 #if defined(_AIX)
00156     #define XML_AIX
00157     #define XML_UNIX
00158     #if defined(_AIXVERSION_430)
00159         #define XML_AIX43  // for use of POSIX compliant pthread functions
00160     #endif
00161 #elif defined(_SEQUENT_)
00162     #define XML_PTX
00163     #define XML_UNIX
00164 #elif defined(_HP_UX) || defined(__hpux) || defined(_HPUX_SOURCE)
00165     #define XML_HPUX
00166     #define XML_UNIX
00167 #elif defined(SOLARIS) || defined(__SVR4)
00168     #define XML_SOLARIS
00169     #define XML_UNIX
00170 #elif defined(_SCO_DS)
00171     #define XML_OPENSERVER
00172     #define XML_UNIX
00173 #elif defined(__UNIXWARE__) || defined(__USLC__)
00174     #define XML_UNIXWARE
00175     #define XML_UNIX
00176 #elif defined(__linux__)
00177     #define XML_LINUX
00178     #define XML_UNIX
00179 #elif defined(__FreeBSD__)
00180     #define XML_FREEBSD
00181     #define XML_UNIX
00182 #elif defined(IRIX) || defined(__sgi)
00183     #define XML_IRIX
00184     #define XML_UNIX
00185 #elif defined(__MVS__)
00186     #define XML_OS390
00187     #define XML_UNIX
00188 #elif defined(EXM_OS390)
00189     #define XML_OS390
00190     #define XML_UNIX
00191 #elif defined(__OS400__)
00192     #define XML_AS400
00193     #define XML_UNIX
00194 #elif defined(__OS2__)
00195     #define XML_OS2
00196 #elif defined(__TANDEM)
00197     #define XML_TANDEM
00198     #define XML_UNIX
00199     #define XML_CSET
00200 #elif defined(_WIN32) || defined(WIN32)
00201     #define XML_WIN32
00202     #ifndef WIN32
00203       #define WIN32
00204     #endif
00205 #elif defined(__WINDOWS__)
00206 
00207     // IBM VisualAge special handling
00208     #if defined(__32BIT__)
00209         #define XML_WIN32
00210     #else
00211         #define XML_WIN16
00212     #endif
00213 #elif defined(__MSDXML__)
00214     #define XML_DOS
00215 
00216 #elif defined(macintosh)
00217     #define XML_MACOS
00218 #elif defined(__APPLE__) && defined(__MACH__)
00219     #define XML_MACOSX
00220 #elif defined(__alpha) && defined(__osf__)
00221     #define XML_TRU64
00222 #else
00223     #error Code requires port to host OS!
00224 #endif
00225 
00226 
00227 // ---------------------------------------------------------------------------
00228 //  This section attempts to autodetect the compiler being used. It will set
00229 //  up Xerces specific defines that can be used by the rest of the code.
00230 // ---------------------------------------------------------------------------
00231 #if defined(__BORLANDC__)
00232     #define XML_BORLAND
00233 #elif defined(_MSC_VER)
00234     #define XML_VISUALCPP
00235 #elif defined(__xlC__)
00236     #define XML_CSET
00237 #elif defined(XML_SOLARIS)
00238     #if defined(__SUNPRO_CC) & __SUNPRO_CC >=0x500
00239         #define XML_SUNCC5
00240     #elif defined(__SUNPRO_CC) & __SUNPRO_CC <0x500
00241         #define XML_SUNCC
00242     #elif defined(_EDG_RUNTIME_USES_NAMESPACES)
00243         #define XML_SOLARIS_KAICC
00244     #elif defined(__GNUG__)
00245         #define XML_GCC
00246     #else
00247         #error Code requires port to current development environment
00248     #endif
00249 #elif defined (__GNUG__) || defined(__linux__)
00250     #define XML_GCC
00251 #elif defined(XML_HPUX)
00252     #if defined(EXM_HPUX)
00253         #define XML_HPUX_KAICC
00254     #elif (__cplusplus == 1)
00255         #define XML_HPUX_CC
00256     #elif (__cplusplus == 199707 || __cplusplus == 199711)
00257         #define XML_HPUX_aCC
00258     #endif
00259 #elif defined(XML_IRIX)
00260     #define XML_MIPSPRO_CC
00261 #elif defined(XML_PTX)
00262     #define XML_PTX_CC
00263 #elif defined(XML_TANDEM)
00264     #define XML_TANDEMCC
00265 #elif defined(__MVS__) && defined(__cplusplus)
00266     #define XML_MVSCPP
00267 #elif defined(EXM_OS390) && defined(__cplusplus)
00268     #define XML_MVSCPP
00269 #elif defined(__IBMC__) || defined(__IBMCPP__)
00270     #if defined(XML_WIN32)
00271         #define XML_IBMVAW32
00272     #elif defined(XML_OS2)
00273         #define XML_IBMVAOS2
00274         #if (__IBMC__ >= 400 || __IBMCPP__ >= 400)
00275             #define XML_IBMVA4_OS2
00276         #endif
00277     #endif
00278 #elif defined(XML_TRU64) && defined(__DECCXX)
00279     #define XML_DECCXX
00280 #elif defined(__MWERKS__)
00281     #define XML_METROWERKS
00282 #elif defined(__OS400__)
00283 #else
00284     #error Code requires port to current development environment
00285 #endif
00286 
00287 #endif


Copyright © 2000 The Apache Software Foundation. All Rights Reserved.