First public contribution.
2 * Portions Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
7 * This material is provided "as is", with absolutely no warranty expressed
8 * or implied. Any use is at your own risk.
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.
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
22 #if !defined(RC_INVOKED)
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
31 # if defined(_STLP_WCE_EVC3)
34 # include _STLP_NATIVE_C_HEADER(stdio.h)
36 # if defined (__SUNPRO_CC) && !defined (_STRUCT_FILE)
40 # if ((defined (__MWERKS__) && !defined (N_PLAT_NLM)) || defined (__BORLANDC__)) && !defined (__SYMBIAN32__)
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])
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
60 # undef _STLP_DONT_POP_HEADER_ID
64 #endif /* RC_INVOKED */