1/* 2 * Copyright (c) 1999 3 * Boris Fomitchev 4 * 5 * This material is provided "as is", with absolutely no warranty expressed 6 * or implied. Any use is at your own risk. 7 * 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. 13 * 14 */ 15 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 19 */ 20#ifndef _STLP_STRING_H 21 22#if !defined (RC_INVOKED) 23 24# ifndef _STLP_OUTERMOST_HEADER_ID 25# define _STLP_OUTERMOST_HEADER_ID 0x269 26# include <stl/_cprolog.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 30# endif 31 32# if defined(_STLP_WCE_EVC3) 33struct _exception; 34# endif 35# if (_STLP_OUTERMOST_HEADER_ID != 0x269) || defined (_STLP_DONT_POP_HEADER_ID) 36# if defined (_STLP_HAS_INCLUDE_NEXT) 37# include_next <string.h> 38# else 39# include _STLP_NATIVE_C_HEADER(string.h) 40# endif 41# else 42# if defined (__BORLANDC__) && !defined (__linux__) 43# if defined (_STLP_HAS_INCLUDE_NEXT) 44# include_next <_str.h> 45# else 46# include _STLP_NATIVE_CPP_C_HEADER(_str.h) 47# endif 48# else 49# if defined (_STLP_HAS_INCLUDE_NEXT) 50# include_next <string.h> 51# else 52# include _STLP_NATIVE_C_HEADER(string.h) 53# endif 54# endif 55# endif 56 57# if (_STLP_OUTERMOST_HEADER_ID == 0x269) 58# if !defined (_STLP_DONT_POP_HEADER_ID) 59# include <stl/_epilog.h> 60# undef _STLP_OUTERMOST_HEADER_ID 61# else 62# undef _STLP_DONT_POP_HEADER_ID 63# endif 64# endif 65#endif /* RC_INVOKED */ 66#endif /* _STLP_STRING_H */ 67