5 * This material is provided "as is", with absolutely no warranty expressed
6 * or implied. Any use is at your own risk.
8 * Permission to use or copy this software for any purpose is hereby granted
9 * without fee, provided the above notices are retained on all copies.
10 * Permission to modify the code and to distribute modified code is granted,
11 * provided the above notices are retained, and a notice that the code was
12 * modified is included with the above copyright notice.
16 /* Workaround for a "misbehaviour" when compiling resource scripts using
17 * eMbedded Visual C++. The standard .rc file includes windows header files,
18 * which in turn include stdarg.h, which results in warnings and errors
20 #if !defined(RC_INVOKED)
22 # ifndef _STLP_OUTERMOST_HEADER_ID
23 # define _STLP_OUTERMOST_HEADER_ID 0x264
24 # include <stl/_prolog.h>
25 # elif (_STLP_OUTERMOST_HEADER_ID == 0x264) && !defined (_STLP_DONT_POP_HEADER_ID)
26 # define _STLP_DONT_POP_HEADER_ID
29 # if defined(_STLP_WCE_EVC3)
32 # include _STLP_NATIVE_C_HEADER(stdio.h)
34 # if defined (__SUNPRO_CC) && !defined (_STRUCT_FILE)
38 # if (defined (__MWERKS__) && !defined (N_PLAT_NLM)) || defined (__BORLANDC__)
42 # if defined (__MWERKS__)
43 # define stdin (&_STLP_VENDOR_CSTD::__files[0])
44 # define stdout (&_STLP_VENDOR_CSTD::__files[1])
45 # define stderr (&_STLP_VENDOR_CSTD::__files[2])
46 # elif defined (__BORLANDC__)
47 # define stdin (&_STLP_VENDOR_CSTD::_streams[0])
48 # define stdout (&_STLP_VENDOR_CSTD::_streams[1])
49 # define stderr (&_STLP_VENDOR_CSTD::_streams[2])
53 # if (_STLP_OUTERMOST_HEADER_ID == 0x264)
54 # if !defined (_STLP_DONT_POP_HEADER_ID)
55 # include <stl/_epilog.h>
56 # undef _STLP_OUTERMOST_HEADER_ID
58 # undef _STLP_DONT_POP_HEADER_ID
62 #endif /* RC_INVOKED */