genericopenlibs/cppstdlib/stl/stlport/stdio.h
changeset 31 ce057bb09d0b
parent 0 e4d67989cc36
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     1 /*
       
     2  * Portions Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
       
     3  *
       
     4  * Copyright (c) 1999
       
     5  * Boris Fomitchev
       
     6  *
       
     7  * This material is provided "as is", with absolutely no warranty expressed
       
     8  * or implied. Any use is at your own risk.
       
     9  *
       
    10  * Permission to use or copy this software for any purpose is hereby granted
       
    11  * without fee, provided the above notices are retained on all copies.
       
    12  * Permission to modify the code and to distribute modified code is granted,
       
    13  * provided the above notices are retained, and a notice that the code was
       
    14  * modified is included with the above copyright notice.
       
    15  *
       
    16  */
       
    17 
       
    18 /* Workaround for a "misbehaviour" when compiling resource scripts using
       
    19  * eMbedded Visual C++. The standard .rc file includes windows header files,
       
    20  * which in turn include stdarg.h, which results in warnings and errors
       
    21  */
       
    22 #if !defined(RC_INVOKED)
       
    23 
       
    24 #  ifndef _STLP_OUTERMOST_HEADER_ID
       
    25 #    define _STLP_OUTERMOST_HEADER_ID 0x264
       
    26 #    include <stl/_prolog.h>
       
    27 #  elif (_STLP_OUTERMOST_HEADER_ID == 0x264) && !defined (_STLP_DONT_POP_HEADER_ID)
       
    28 #    define _STLP_DONT_POP_HEADER_ID
       
    29 #  endif
       
    30 
       
    31 #    if defined(_STLP_WCE_EVC3)
       
    32 struct _exception;
       
    33 #    endif
       
    34 #    include _STLP_NATIVE_C_HEADER(stdio.h)
       
    35 
       
    36 #    if defined (__SUNPRO_CC) && !defined (_STRUCT_FILE)
       
    37 #      define _STRUCT_FILE
       
    38 #    endif
       
    39 
       
    40 #    if ((defined (__MWERKS__) && !defined (N_PLAT_NLM))  || defined (__BORLANDC__)) && !defined (__SYMBIAN32__)
       
    41 #      undef stdin
       
    42 #      undef stdout
       
    43 #      undef stderr
       
    44 #      if defined (__MWERKS__)
       
    45 #      define stdin   (&_STLP_VENDOR_CSTD::__files[0])
       
    46 #      define stdout  (&_STLP_VENDOR_CSTD::__files[1])
       
    47 #      define stderr  (&_STLP_VENDOR_CSTD::__files[2])
       
    48 #      elif defined (__BORLANDC__)
       
    49 #        define stdin   (&_STLP_VENDOR_CSTD::_streams[0])
       
    50 #        define stdout  (&_STLP_VENDOR_CSTD::_streams[1])
       
    51 #        define stderr  (&_STLP_VENDOR_CSTD::_streams[2])
       
    52 #      endif
       
    53 #    endif
       
    54 
       
    55 #  if (_STLP_OUTERMOST_HEADER_ID == 0x264)
       
    56 #    if !defined (_STLP_DONT_POP_HEADER_ID)
       
    57 #      include <stl/_epilog.h>
       
    58 #      undef  _STLP_OUTERMOST_HEADER_ID
       
    59 #    else
       
    60 #      undef  _STLP_DONT_POP_HEADER_ID
       
    61 #    endif
       
    62 #  endif
       
    63 
       
    64 #endif /* RC_INVOKED */