/home/ntakagi/work/STLport-5.1.5/stlport/stdlib.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 /* Workaround for a "misbehaviour" when compiling resource scripts using
00017  * eMbedded Visual C++. The standard .rc file includes windows header files,
00018  * which in turn include stdlib.h, which results in warnings and errors
00019  */
00020 #if !defined (RC_INVOKED)
00021 
00022 #  if !defined (_STLP_OUTERMOST_HEADER_ID)
00023 #    define _STLP_OUTERMOST_HEADER_ID 0x265
00024 #    include <stl/_prolog.h>
00025 #  elif (_STLP_OUTERMOST_HEADER_ID == 0x265) && !defined (_STLP_DONT_POP_HEADER_ID)
00026 #    define _STLP_DONT_POP_HEADER_ID
00027 #  endif
00028 
00029 #  if defined (_MSC_VER) || (defined (__GNUC__) && defined (__MINGW32__)) || \
00030       defined (__BORLANDC__) || defined (__DMC__) || \
00031       (defined (__HP_aCC) && defined (_REENTRANT))
00032 /* Native stdlib.h contains errno macro definition making inclusion of native
00033  * errno.h in STLport errno.h impossible. We are then forced to include errno.h
00034  * first.
00035  */
00036 #    include "errno.h"
00037 #  endif
00038 
00039 /*
00040  forward-declaration for _exception struct; prevents warning message
00041  ../include/stdlib.h(817) : warning C4115: '_exception' : named type definition in parentheses
00042 */
00043 #  if defined(_STLP_WCE_EVC3)
00044 struct _exception;
00045 #  endif
00046 
00047 #  include _STLP_NATIVE_C_HEADER(stdlib.h)
00048 
00049 /* on evc3/evc4 including stdlib.h also defines setjmp macro */
00050 #  if defined (_STLP_WCE)
00051 #    define _STLP_NATIVE_SETJMP_H_INCLUDED
00052 #  endif
00053 
00054 #  if (_STLP_OUTERMOST_HEADER_ID == 0x265)
00055 #    if ! defined (_STLP_DONT_POP_HEADER_ID)
00056 #      include <stl/_epilog.h>
00057 #      undef  _STLP_OUTERMOST_HEADER_ID
00058 #    else
00059 #      undef  _STLP_DONT_POP_HEADER_ID
00060 #    endif
00061 #  endif
00062 
00063 #endif /* RC_INVOKED */
00064 
00065 /*
00066   Local Variables:
00067   mode:C++
00068   End:
00069 */



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