os/ossrv/genericopenlibs/cppstdlib/stl/stlport/stdlib.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
 * Copyright (c) 1999
sl@0
     3
 * Boris Fomitchev
sl@0
     4
 *
sl@0
     5
 * This material is provided "as is", with absolutely no warranty expressed
sl@0
     6
 * or implied. Any use is at your own risk.
sl@0
     7
 *
sl@0
     8
 * Permission to use or copy this software for any purpose is hereby granted
sl@0
     9
 * without fee, provided the above notices are retained on all copies.
sl@0
    10
 * Permission to modify the code and to distribute modified code is granted,
sl@0
    11
 * provided the above notices are retained, and a notice that the code was
sl@0
    12
 * modified is included with the above copyright notice.
sl@0
    13
 *
sl@0
    14
 */
sl@0
    15
sl@0
    16
/* Workaround for a "misbehaviour" when compiling resource scripts using
sl@0
    17
 * eMbedded Visual C++. The standard .rc file includes windows header files,
sl@0
    18
 * which in turn include stdlib.h, which results in warnings and errors
sl@0
    19
 */
sl@0
    20
#if !defined (RC_INVOKED)
sl@0
    21
sl@0
    22
#  if !defined (_STLP_OUTERMOST_HEADER_ID)
sl@0
    23
#    define _STLP_OUTERMOST_HEADER_ID 0x265
sl@0
    24
#    include <stl/_prolog.h>
sl@0
    25
#  elif (_STLP_OUTERMOST_HEADER_ID == 0x265) && !defined (_STLP_DONT_POP_HEADER_ID)
sl@0
    26
#    define _STLP_DONT_POP_HEADER_ID
sl@0
    27
#  endif
sl@0
    28
sl@0
    29
#  if defined (_MSC_VER) || (defined (__GNUC__) && defined (__MINGW32__)) || \
sl@0
    30
      defined (__BORLANDC__) || defined (__DMC__) || \
sl@0
    31
      (defined (__HP_aCC) && defined (_REENTRANT))
sl@0
    32
/* Native stdlib.h contains errno macro definition making inclusion of native
sl@0
    33
 * errno.h in STLport errno.h impossible. We are then forced to include errno.h
sl@0
    34
 * first.
sl@0
    35
 */
sl@0
    36
#    include "errno.h"
sl@0
    37
#  endif
sl@0
    38
sl@0
    39
/*
sl@0
    40
 forward-declaration for _exception struct; prevents warning message
sl@0
    41
 ../include/stdlib.h(817) : warning C4115: '_exception' : named type definition in parentheses
sl@0
    42
*/
sl@0
    43
#  if defined(_STLP_WCE_EVC3)
sl@0
    44
struct _exception;
sl@0
    45
#  endif
sl@0
    46
sl@0
    47
#  include _STLP_NATIVE_C_HEADER(stdlib.h)
sl@0
    48
sl@0
    49
/* on evc3/evc4 including stdlib.h also defines setjmp macro */
sl@0
    50
#  if defined (_STLP_WCE)
sl@0
    51
#    define _STLP_NATIVE_SETJMP_H_INCLUDED
sl@0
    52
#  endif
sl@0
    53
sl@0
    54
#  if (_STLP_OUTERMOST_HEADER_ID == 0x265)
sl@0
    55
#    if ! defined (_STLP_DONT_POP_HEADER_ID)
sl@0
    56
#      include <stl/_epilog.h>
sl@0
    57
#      undef  _STLP_OUTERMOST_HEADER_ID
sl@0
    58
#    else
sl@0
    59
#      undef  _STLP_DONT_POP_HEADER_ID
sl@0
    60
#    endif
sl@0
    61
#  endif
sl@0
    62
sl@0
    63
#endif /* RC_INVOKED */
sl@0
    64
sl@0
    65
/*
sl@0
    66
  Local Variables:
sl@0
    67
  mode:C++
sl@0
    68
  End:
sl@0
    69
*/