epoc32/include/tools/stlport/stdlib.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/tools/stlport/stdlib.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,69 @@
     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 +/* Workaround for a "misbehaviour" when compiling resource scripts using
    1.20 + * eMbedded Visual C++. The standard .rc file includes windows header files,
    1.21 + * which in turn include stdlib.h, which results in warnings and errors
    1.22 + */
    1.23 +#if !defined (RC_INVOKED)
    1.24 +
    1.25 +#  if !defined (_STLP_OUTERMOST_HEADER_ID)
    1.26 +#    define _STLP_OUTERMOST_HEADER_ID 0x265
    1.27 +#    include <stl/_prolog.h>
    1.28 +#  elif (_STLP_OUTERMOST_HEADER_ID == 0x265) && !defined (_STLP_DONT_POP_HEADER_ID)
    1.29 +#    define _STLP_DONT_POP_HEADER_ID
    1.30 +#  endif
    1.31 +
    1.32 +#  if defined (_MSC_VER) || (defined (__GNUC__) && defined (__MINGW32__)) || \
    1.33 +      defined (__BORLANDC__) || defined (__DMC__) || \
    1.34 +      (defined (__HP_aCC) && defined (_REENTRANT))
    1.35 +/* Native stdlib.h contains errno macro definition making inclusion of native
    1.36 + * errno.h in STLport errno.h impossible. We are then forced to include errno.h
    1.37 + * first.
    1.38 + */
    1.39 +#    include "errno.h"
    1.40 +#  endif
    1.41 +
    1.42 +/*
    1.43 + forward-declaration for _exception struct; prevents warning message
    1.44 + ../include/stdlib.h(817) : warning C4115: '_exception' : named type definition in parentheses
    1.45 +*/
    1.46 +#  if defined(_STLP_WCE_EVC3)
    1.47 +struct _exception;
    1.48 +#  endif
    1.49 +
    1.50 +#  include _STLP_NATIVE_C_HEADER(stdlib.h)
    1.51 +
    1.52 +/* on evc3/evc4 including stdlib.h also defines setjmp macro */
    1.53 +#  if defined (_STLP_WCE)
    1.54 +#    define _STLP_NATIVE_SETJMP_H_INCLUDED
    1.55 +#  endif
    1.56 +
    1.57 +#  if (_STLP_OUTERMOST_HEADER_ID == 0x265)
    1.58 +#    if ! defined (_STLP_DONT_POP_HEADER_ID)
    1.59 +#      include <stl/_epilog.h>
    1.60 +#      undef  _STLP_OUTERMOST_HEADER_ID
    1.61 +#    else
    1.62 +#      undef  _STLP_DONT_POP_HEADER_ID
    1.63 +#    endif
    1.64 +#  endif
    1.65 +
    1.66 +#endif /* RC_INVOKED */
    1.67 +
    1.68 +/*
    1.69 +  Local Variables:
    1.70 +  mode:C++
    1.71 +  End:
    1.72 +*/