string.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. /* Workaround for a "misbehaviour" when compiling resource scripts using
  16. * eMbedded Visual C++. The standard .rc file includes windows header files,
  17. * which in turn include string.h, which results in warnings and errors
  18. */
  19. #ifndef _STLP_STRING_H
  20. #if !defined (RC_INVOKED)
  21. # ifndef _STLP_OUTERMOST_HEADER_ID
  22. # define _STLP_OUTERMOST_HEADER_ID 0x269
  23. # include <stl/_cprolog.h>
  24. # elif (_STLP_OUTERMOST_HEADER_ID == 0x269) && !defined (_STLP_DONT_POP_HEADER_ID)
  25. # define _STLP_DONT_POP_HEADER_ID
  26. # define _STLP_STRING_H
  27. # endif
  28. # if defined(_STLP_WCE_EVC3)
  29. struct _exception;
  30. # endif
  31. # if (_STLP_OUTERMOST_HEADER_ID != 0x269) || defined (_STLP_DONT_POP_HEADER_ID)
  32. # if defined (_STLP_HAS_INCLUDE_NEXT)
  33. # include_next <string.h>
  34. # else
  35. # include _STLP_NATIVE_C_HEADER(string.h)
  36. # endif
  37. # else
  38. # if defined (__BORLANDC__) && !defined (__linux__)
  39. # if defined (_STLP_HAS_INCLUDE_NEXT)
  40. # include_next <_str.h>
  41. # else
  42. # include _STLP_NATIVE_CPP_C_HEADER(_str.h)
  43. # endif
  44. # else
  45. # if defined (_STLP_HAS_INCLUDE_NEXT)
  46. # include_next <string.h>
  47. # else
  48. # include _STLP_NATIVE_C_HEADER(string.h)
  49. # endif
  50. # endif
  51. # endif
  52. # if (_STLP_OUTERMOST_HEADER_ID == 0x269)
  53. # if !defined (_STLP_DONT_POP_HEADER_ID)
  54. # include <stl/_epilog.h>
  55. # undef _STLP_OUTERMOST_HEADER_ID
  56. # else
  57. # undef _STLP_DONT_POP_HEADER_ID
  58. # endif
  59. # endif
  60. #endif /* RC_INVOKED */
  61. #endif /* _STLP_STRING_H */