stdio.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 stdarg.h, which results in warnings and errors
  18. */
  19. #if !defined(RC_INVOKED)
  20. # ifndef _STLP_OUTERMOST_HEADER_ID
  21. # define _STLP_OUTERMOST_HEADER_ID 0x264
  22. # include <stl/_cprolog.h>
  23. # elif (_STLP_OUTERMOST_HEADER_ID == 0x264) && !defined (_STLP_DONT_POP_HEADER_ID)
  24. # define _STLP_DONT_POP_HEADER_ID
  25. # endif
  26. # if defined(_STLP_WCE_EVC3)
  27. struct _exception;
  28. # endif
  29. # if defined (_STLP_HAS_INCLUDE_NEXT)
  30. # include_next <stdio.h>
  31. # else
  32. # include _STLP_NATIVE_C_HEADER(stdio.h)
  33. # endif
  34. # if defined (__SUNPRO_CC) && !defined (_STRUCT_FILE)
  35. # define _STRUCT_FILE
  36. # endif
  37. # if defined (__BORLANDC__) && defined (__cplusplus) && !defined (__linux__)
  38. _STLP_BEGIN_NAMESPACE
  39. using __std_alias::_streams;
  40. _STLP_END_NAMESPACE
  41. # endif
  42. # if (_STLP_OUTERMOST_HEADER_ID == 0x264)
  43. # if !defined (_STLP_DONT_POP_HEADER_ID)
  44. # include <stl/_epilog.h>
  45. # undef _STLP_OUTERMOST_HEADER_ID
  46. # else
  47. # undef _STLP_DONT_POP_HEADER_ID
  48. # endif
  49. # endif
  50. #endif /* RC_INVOKED */