1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cppstdlib/stl/stlport/stdio.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,64 @@
1.4 +/*
1.5 + * Portions Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
1.6 + *
1.7 + * Copyright (c) 1999
1.8 + * Boris Fomitchev
1.9 + *
1.10 + * This material is provided "as is", with absolutely no warranty expressed
1.11 + * or implied. Any use is at your own risk.
1.12 + *
1.13 + * Permission to use or copy this software for any purpose is hereby granted
1.14 + * without fee, provided the above notices are retained on all copies.
1.15 + * Permission to modify the code and to distribute modified code is granted,
1.16 + * provided the above notices are retained, and a notice that the code was
1.17 + * modified is included with the above copyright notice.
1.18 + *
1.19 + */
1.20 +
1.21 +/* Workaround for a "misbehaviour" when compiling resource scripts using
1.22 + * eMbedded Visual C++. The standard .rc file includes windows header files,
1.23 + * which in turn include stdarg.h, which results in warnings and errors
1.24 + */
1.25 +#if !defined(RC_INVOKED)
1.26 +
1.27 +# ifndef _STLP_OUTERMOST_HEADER_ID
1.28 +# define _STLP_OUTERMOST_HEADER_ID 0x264
1.29 +# include <stl/_prolog.h>
1.30 +# elif (_STLP_OUTERMOST_HEADER_ID == 0x264) && !defined (_STLP_DONT_POP_HEADER_ID)
1.31 +# define _STLP_DONT_POP_HEADER_ID
1.32 +# endif
1.33 +
1.34 +# if defined(_STLP_WCE_EVC3)
1.35 +struct _exception;
1.36 +# endif
1.37 +# include _STLP_NATIVE_C_HEADER(stdio.h)
1.38 +
1.39 +# if defined (__SUNPRO_CC) && !defined (_STRUCT_FILE)
1.40 +# define _STRUCT_FILE
1.41 +# endif
1.42 +
1.43 +# if ((defined (__MWERKS__) && !defined (N_PLAT_NLM)) || defined (__BORLANDC__)) && !defined (__SYMBIAN32__)
1.44 +# undef stdin
1.45 +# undef stdout
1.46 +# undef stderr
1.47 +# if defined (__MWERKS__)
1.48 +# define stdin (&_STLP_VENDOR_CSTD::__files[0])
1.49 +# define stdout (&_STLP_VENDOR_CSTD::__files[1])
1.50 +# define stderr (&_STLP_VENDOR_CSTD::__files[2])
1.51 +# elif defined (__BORLANDC__)
1.52 +# define stdin (&_STLP_VENDOR_CSTD::_streams[0])
1.53 +# define stdout (&_STLP_VENDOR_CSTD::_streams[1])
1.54 +# define stderr (&_STLP_VENDOR_CSTD::_streams[2])
1.55 +# endif
1.56 +# endif
1.57 +
1.58 +# if (_STLP_OUTERMOST_HEADER_ID == 0x264)
1.59 +# if !defined (_STLP_DONT_POP_HEADER_ID)
1.60 +# include <stl/_epilog.h>
1.61 +# undef _STLP_OUTERMOST_HEADER_ID
1.62 +# else
1.63 +# undef _STLP_DONT_POP_HEADER_ID
1.64 +# endif
1.65 +# endif
1.66 +
1.67 +#endif /* RC_INVOKED */