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 string.h, which results in warnings and errors
20 #ifndef _STLP_STRING_H
22 #if !defined (RC_INVOKED)
24 # ifndef _STLP_OUTERMOST_HEADER_ID
25 # define _STLP_OUTERMOST_HEADER_ID 0x269
26 # include <stl/_prolog.h>
27 # elif (_STLP_OUTERMOST_HEADER_ID == 0x269) && !defined (_STLP_DONT_POP_HEADER_ID)
28 # define _STLP_DONT_POP_HEADER_ID
29 # define _STLP_STRING_H
32 # if defined(_STLP_WCE_EVC3)
35 # if (_STLP_OUTERMOST_HEADER_ID != 0x269) || defined (_STLP_DONT_POP_HEADER_ID)
36 # include _STLP_NATIVE_C_HEADER(string.h)
38 # if defined (__BORLANDC__)
39 # include _STLP_NATIVE_CPP_C_HEADER(_str.h)
41 # include _STLP_NATIVE_C_HEADER(string.h)
44 # if (_STLP_OUTERMOST_HEADER_ID == 0x269)
45 # if defined (__BORLANDC__) && defined (_STLP_IMPORT_VENDOR_CSTD)
46 # include <using/cstring>
51 # if (_STLP_OUTERMOST_HEADER_ID == 0x269)
52 # if !defined (_STLP_DONT_POP_HEADER_ID)
53 # include <stl/_epilog.h>
54 # undef _STLP_OUTERMOST_HEADER_ID
56 # undef _STLP_DONT_POP_HEADER_ID
59 #endif /* RC_INVOKED */
60 #endif /* _STLP_STRING_H */