1*c2c66affSColin Finck/* 2*c2c66affSColin Finck * Copyright (c) 1996,1997 3*c2c66affSColin Finck * Silicon Graphics Computer Systems, Inc. 4*c2c66affSColin Finck * 5*c2c66affSColin Finck * Copyright (c) 1999 6*c2c66affSColin Finck * Boris Fomitchev 7*c2c66affSColin Finck * 8*c2c66affSColin Finck * This material is provided "as is", with absolutely no warranty expressed 9*c2c66affSColin Finck * or implied. Any use is at your own risk. 10*c2c66affSColin Finck * 11*c2c66affSColin Finck * Permission to use or copy this software for any purpose is hereby granted 12*c2c66affSColin Finck * without fee, provided the above notices are retained on all copies. 13*c2c66affSColin Finck * Permission to modify the code and to distribute modified code is granted, 14*c2c66affSColin Finck * provided the above notices are retained, and a notice that the code was 15*c2c66affSColin Finck * modified is included with the above copyright notice. 16*c2c66affSColin Finck */ 17*c2c66affSColin Finck 18*c2c66affSColin Finck// This header exists solely for portability. Normally it just includes 19*c2c66affSColin Finck// the native header <exception>. 20*c2c66affSColin Finck 21*c2c66affSColin Finck#ifndef _STLP_EXCEPTION 22*c2c66affSColin Finck 23*c2c66affSColin Finck#if !defined (_STLP_OUTERMOST_HEADER_ID) 24*c2c66affSColin Finck# define _STLP_OUTERMOST_HEADER_ID 0x423 25*c2c66affSColin Finck# include <stl/_prolog.h> 26*c2c66affSColin Finck#elif (_STLP_OUTERMOST_HEADER_ID == 0x423) 27*c2c66affSColin Finck# define _STLP_DONT_POP_HEADER_ID 28*c2c66affSColin Finck# define _STLP_EXCEPTION 29*c2c66affSColin Finck#endif 30*c2c66affSColin Finck 31*c2c66affSColin Finck#if (_STLP_OUTERMOST_HEADER_ID == 0x423) && !defined (_STLP_DONT_POP_HEADER_ID) 32*c2c66affSColin Finck# ifndef _STLP_INTERNAL_EXCEPTION 33*c2c66affSColin Finck# include <stl/_exception.h> 34*c2c66affSColin Finck# endif 35*c2c66affSColin Finck#endif 36*c2c66affSColin Finck 37*c2c66affSColin Finck#if (_STLP_OUTERMOST_HEADER_ID != 0x423) || defined (_STLP_DONT_POP_HEADER_ID) || defined (_STLP_IMPORT_VENDOR_STD) 38*c2c66affSColin Finck/* If we are here it means that we are in an include called 39*c2c66affSColin Finck * from the native lib which means that we can simply forward this 40*c2c66affSColin Finck * call to the native exception header: 41*c2c66affSColin Finck */ 42*c2c66affSColin Finck# if defined (_STLP_HAS_INCLUDE_NEXT) 43*c2c66affSColin Finck# include_next <exception> 44*c2c66affSColin Finck# else 45*c2c66affSColin Finck# if defined (__DMC__) && (_STLP_OUTERMOST_HEADER_ID == 0x874) 46*c2c66affSColin Finck// Workaround to DMC harcoded typeinfo.h inclusion. 47*c2c66affSColin Finck# include <../include/exception> 48*c2c66affSColin Finck# else 49*c2c66affSColin Finck# include _STLP_NATIVE_CPP_RUNTIME_HEADER(exception) 50*c2c66affSColin Finck# endif 51*c2c66affSColin Finck# endif 52*c2c66affSColin Finck#endif 53*c2c66affSColin Finck 54*c2c66affSColin Finck#if (_STLP_OUTERMOST_HEADER_ID == 0x423) 55*c2c66affSColin Finck# if !defined(_STLP_DONT_POP_HEADER_ID) 56*c2c66affSColin Finck# include <stl/_epilog.h> 57*c2c66affSColin Finck# undef _STLP_OUTERMOST_HEADER_ID 58*c2c66affSColin Finck# else 59*c2c66affSColin Finck# undef _STLP_DONT_POP_HEADER_ID 60*c2c66affSColin Finck# endif 61*c2c66affSColin Finck#endif 62*c2c66affSColin Finck 63*c2c66affSColin Finck#endif /* _STLP_EXCEPTION */ 64*c2c66affSColin Finck 65*c2c66affSColin Finck 66*c2c66affSColin Finck// Local Variables: 67*c2c66affSColin Finck// mode:C++ 68*c2c66affSColin Finck// End: 69