From fcba601cf48f3d521d2305431a96baae363ad793 Mon Sep 17 00:00:00 2001
From: Francois Gouget <fgouget@free.fr>
Date: Mon, 7 May 2001 18:18:33 +0000
Subject: [PATCH] RC_INVOKED (&NOWINRES) special cases.

---
 include/msvcrt/stdio.h | 2 ++
 include/windows.h      | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/include/msvcrt/stdio.h b/include/msvcrt/stdio.h
index ef51591dd32..f433af6363e 100644
--- a/include/msvcrt/stdio.h
+++ b/include/msvcrt/stdio.h
@@ -8,7 +8,9 @@
 #ifndef __WINE_STDIO_H
 #define __WINE_STDIO_H
 
+#ifndef RC_INVOKED
 #include <stdarg.h>
+#endif
 #include "msvcrt/wctype.h"         /* For wint_t */
 
 
diff --git a/include/windows.h b/include/windows.h
index 1ab74b76f2d..595294f96bc 100644
--- a/include/windows.h
+++ b/include/windows.h
@@ -5,6 +5,10 @@
 #error Wine should not include windows.h internally
 #endif
 
+#if defined(RC_INVOKED) && !defined(NOWINRES)
+#include "winresrc.h"
+#else /* RC_INVOKED && !NOWINRES */
+
 /* All the basic includes */
 /* #include "excpt.h" */
 #include "windef.h"
@@ -82,4 +86,5 @@ WORD        WINAPI WOWHandle16(HANDLE,WOW_HANDLE_TYPE);
 
 #endif /* 0 */
 
+#endif  /* RC_INVOKED && !NOWINRES */
 #endif  /* __WINE_WINDOWS_H */
-- 
GitLab