X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=blobdiff_plain;f=include%2Fc%2B%2B%2Fstl%2Fstl%2F_csetjmp.h;fp=include%2Fc%2B%2B%2Fstl%2Fstl%2F_csetjmp.h;h=7bb0018099b735a1a9239f6a39d5a15267e99b96;hp=0000000000000000000000000000000000000000;hb=173d8903eb9d51a4ea7d7fa3e52dc86c9bb6d4f1;hpb=b024710fe2b60cd4a42a8993b61333d6cdb56ca3 diff --git a/include/c++/stl/stl/_csetjmp.h b/include/c++/stl/stl/_csetjmp.h new file mode 100644 index 0000000..7bb0018 --- /dev/null +++ b/include/c++/stl/stl/_csetjmp.h @@ -0,0 +1,65 @@ +/* + * Copyright (c) 1999 + * Boris Fomitchev + * + * This material is provided "as is", with absolutely no warranty expressed + * or implied. Any use is at your own risk. + * + * Permission to use or copy this software for any purpose is hereby granted + * without fee, provided the above notices are retained on all copies. + * Permission to modify the code and to distribute modified code is granted, + * provided the above notices are retained, and a notice that the code was + * modified is included with the above copyright notice. + * + */ + +#ifndef _STLP_INTERNAL_CSETJMP +#define _STLP_INTERNAL_CSETJMP + +// if the macro is on, the header is already there +#if !defined (setjmp) +# if defined (_STLP_USE_NEW_C_HEADERS) +# include _STLP_NATIVE_CPP_C_HEADER(csetjmp) +# else +# define _STLP_NATIVE_SETJMP_H_INCLUDED +# include _STLP_NATIVE_C_HEADER(setjmp.h) +# endif +#endif + +#if defined (_STLP_IMPORT_VENDOR_CSTD) + +# if defined (__BORLANDC__) && defined (_STLP_USE_NEW_C_HEADERS) +/* For Borland, even if stdjmp.h is included symbols won't be in global namespace + * so we need to reach them in vendor namespace: + */ +# undef _STLP_NATIVE_SETJMP_H_INCLUDED +# endif + +_STLP_BEGIN_NAMESPACE +# if !defined (_STLP_NATIVE_SETJMP_H_INCLUDED) +using _STLP_VENDOR_CSTD::jmp_buf; +# else +// if setjmp.h was included first, this is in global namespace, not in +// vendor's std. - 2005-08-04, ptr +using ::jmp_buf; +# endif +# if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS) +# if !defined (setjmp) +# if !defined (__MSL__) || ((__MSL__ > 0x7001) && (__MSL__ < 0x8000)) +# ifndef _STLP_NATIVE_SETJMP_H_INCLUDED +using _STLP_VENDOR_CSTD::setjmp; +# else +using ::setjmp; +# endif +# endif +# endif +# if !defined (_STLP_NATIVE_SETJMP_H_INCLUDED) +using _STLP_VENDOR_CSTD::longjmp; +# else +using ::longjmp; +# endif +# endif +_STLP_END_NAMESPACE +#endif /* _STLP_IMPORT_VENDOR_CSTD */ + +#endif