/home/ntakagi/work/STLport-5.1.5/stlport/stl/_csetjmp.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1999
00003  * Boris Fomitchev
00004  *
00005  * This material is provided "as is", with absolutely no warranty expressed
00006  * or implied. Any use is at your own risk.
00007  *
00008  * Permission to use or copy this software for any purpose is hereby granted
00009  * without fee, provided the above notices are retained on all copies.
00010  * Permission to modify the code and to distribute modified code is granted,
00011  * provided the above notices are retained, and a notice that the code was
00012  * modified is included with the above copyright notice.
00013  *
00014  */
00015 
00016 #ifndef _STLP_INTERNAL_CSETJMP
00017 #define _STLP_INTERNAL_CSETJMP
00018 
00019 // if the macro is on, the header is already there
00020 #if !defined (setjmp)
00021 #  if defined (_STLP_USE_NEW_C_HEADERS)
00022 #    include _STLP_NATIVE_CPP_C_HEADER(csetjmp)
00023 #  else
00024 #    define _STLP_NATIVE_SETJMP_H_INCLUDED
00025 #    include _STLP_NATIVE_C_HEADER(setjmp.h)
00026 #  endif
00027 #endif
00028 
00029 #if defined (_STLP_IMPORT_VENDOR_CSTD)
00030 
00031 #  if defined (__BORLANDC__) && defined (_STLP_USE_NEW_C_HEADERS)
00032 /* For Borland, even if stdjmp.h is included symbols won't be in global namespace
00033  * so we need to reach them in vendor namespace:
00034  */
00035 #    undef _STLP_NATIVE_SETJMP_H_INCLUDED
00036 #  endif
00037 
00038 _STLP_BEGIN_NAMESPACE
00039 #  if !defined (_STLP_NATIVE_SETJMP_H_INCLUDED)
00040 using _STLP_VENDOR_CSTD::jmp_buf;
00041 #  else
00042 // if setjmp.h was included first, this is in global namespace, not in
00043 // vendor's std.  - 2005-08-04, ptr
00044 using ::jmp_buf;
00045 #  endif
00046 #  if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
00047 #    if !defined (setjmp)
00048 #      if !defined (__MSL__) || ((__MSL__ > 0x7001) && (__MSL__ < 0x8000))
00049 #        ifndef _STLP_NATIVE_SETJMP_H_INCLUDED
00050 using _STLP_VENDOR_CSTD::setjmp;
00051 #        else
00052 using ::setjmp;
00053 #        endif
00054 #      endif
00055 #    endif
00056 #    if !defined (_STLP_NATIVE_SETJMP_H_INCLUDED)
00057 using _STLP_VENDOR_CSTD::longjmp;
00058 #    else
00059 using ::longjmp;
00060 #    endif
00061 #  endif
00062 _STLP_END_NAMESPACE
00063 #endif /* _STLP_IMPORT_VENDOR_CSTD */
00064 
00065 #endif



Generated on Mon Mar 10 15:32:20 2008 by  doxygen 1.5.1