xref: /reactos/sdk/include/c++/stlport/stdarg.h (revision c2c66aff)
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 stdarg.h, which results in warnings and errors
19  */
20 #if !defined (RC_INVOKED)
21 
22 #  if !defined (_STLP_OUTERMOST_HEADER_ID)
23 #    define _STLP_OUTERMOST_HEADER_ID 0x261
24 #    include <stl/_cprolog.h>
25 #  elif (_STLP_OUTERMOST_HEADER_ID == 0x261) && !defined (_STLP_DONT_POP_HEADER_ID)
26 #    define _STLP_DONT_POP_HEADER_ID
27 #  endif
28 
29 #  if defined(_STLP_WCE_EVC3)
30 struct _exception;
31 #  endif
32 
33 #  if defined (_STLP_HAS_INCLUDE_NEXT)
34 #    include_next <stdarg.h>
35 #  else
36 #    include _STLP_NATIVE_C_HEADER(stdarg.h)
37 #  endif
38 
39 #  if (_STLP_OUTERMOST_HEADER_ID == 0x261)
40 #    if !defined (_STLP_DONT_POP_HEADER_ID)
41 #      include <stl/_epilog.h>
42 #      undef  _STLP_OUTERMOST_HEADER_ID
43 #    else
44 #      undef  _STLP_DONT_POP_HEADER_ID
45 #    endif
46 #  endif
47 #endif /* RC_INVOKED */
48