/*
 * 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_CSETJMP
# define _STLP_CSETJMP

# ifndef _STLP_OUTERMOST_HEADER_ID
#  define _STLP_OUTERMOST_HEADER_ID 0x111
#  include <stl/_prolog.h>
# endif

// if the macro is on, the header is already there
# ifndef 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

# ifdef _STLP_IMPORT_VENDOR_CSTD
_STLP_BEGIN_NAMESPACE
#  ifndef _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
#  ifndef _STLP_NO_CSTD_FUNCTION_IMPORTS
#   ifndef 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
#   ifndef _STLP_NATIVE_SETJMP_H_INCLUDED
using _STLP_VENDOR_CSTD::longjmp;
#   else  
using ::longjmp;
#   endif
#  endif
_STLP_END_NAMESPACE
# endif /* _STLP_IMPORT_VENDOR_CSTD */

# if (_STLP_OUTERMOST_HEADER_ID == 0x111 )
#  include <stl/_epilog.h>
#  undef _STLP_OUTERMOST_HEADER_ID
# endif

#endif /* _STLP_CSETJMP */

// Local Variables:
// mode:C++
// End:
