1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/tools/stlport/stl/_csetjmp.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,65 @@
1.4 +/*
1.5 + * Copyright (c) 1999
1.6 + * Boris Fomitchev
1.7 + *
1.8 + * This material is provided "as is", with absolutely no warranty expressed
1.9 + * or implied. Any use is at your own risk.
1.10 + *
1.11 + * Permission to use or copy this software for any purpose is hereby granted
1.12 + * without fee, provided the above notices are retained on all copies.
1.13 + * Permission to modify the code and to distribute modified code is granted,
1.14 + * provided the above notices are retained, and a notice that the code was
1.15 + * modified is included with the above copyright notice.
1.16 + *
1.17 + */
1.18 +
1.19 +#ifndef _STLP_INTERNAL_CSETJMP
1.20 +#define _STLP_INTERNAL_CSETJMP
1.21 +
1.22 +// if the macro is on, the header is already there
1.23 +#if !defined (setjmp)
1.24 +# if defined (_STLP_USE_NEW_C_HEADERS)
1.25 +# include _STLP_NATIVE_CPP_C_HEADER(csetjmp)
1.26 +# else
1.27 +# define _STLP_NATIVE_SETJMP_H_INCLUDED
1.28 +# include _STLP_NATIVE_C_HEADER(setjmp.h)
1.29 +# endif
1.30 +#endif
1.31 +
1.32 +#if defined (_STLP_IMPORT_VENDOR_CSTD)
1.33 +
1.34 +# if defined (__BORLANDC__) && defined (_STLP_USE_NEW_C_HEADERS)
1.35 +/* For Borland, even if stdjmp.h is included symbols won't be in global namespace
1.36 + * so we need to reach them in vendor namespace:
1.37 + */
1.38 +# undef _STLP_NATIVE_SETJMP_H_INCLUDED
1.39 +# endif
1.40 +
1.41 +_STLP_BEGIN_NAMESPACE
1.42 +# if !defined (_STLP_NATIVE_SETJMP_H_INCLUDED)
1.43 +using _STLP_VENDOR_CSTD::jmp_buf;
1.44 +# else
1.45 +// if setjmp.h was included first, this is in global namespace, not in
1.46 +// vendor's std. - 2005-08-04, ptr
1.47 +using ::jmp_buf;
1.48 +# endif
1.49 +# if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
1.50 +# if !defined (setjmp)
1.51 +# if !defined (__MSL__) || ((__MSL__ > 0x7001) && (__MSL__ < 0x8000))
1.52 +# ifndef _STLP_NATIVE_SETJMP_H_INCLUDED
1.53 +using _STLP_VENDOR_CSTD::setjmp;
1.54 +# else
1.55 +using ::setjmp;
1.56 +# endif
1.57 +# endif
1.58 +# endif
1.59 +# if !defined (_STLP_NATIVE_SETJMP_H_INCLUDED)
1.60 +using _STLP_VENDOR_CSTD::longjmp;
1.61 +# else
1.62 +using ::longjmp;
1.63 +# endif
1.64 +# endif
1.65 +_STLP_END_NAMESPACE
1.66 +#endif /* _STLP_IMPORT_VENDOR_CSTD */
1.67 +
1.68 +#endif