[PATCH 2/3] tools: Define getopt in make_xftmpl.c

Stefan Dösinger stefan at codeweavers.com
Thu Dec 19 08:11:39 CST 2013


This is taken from tools/wrc.c and fixes a compiler warning when building
with msvc.

I don't know why this isn't just defined in port.h. If there is a better
place to add this definition please advice.
---
 tools/make_xftmpl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/make_xftmpl.c b/tools/make_xftmpl.c
index 1d83498..75b47cc 100644
--- a/tools/make_xftmpl.c
+++ b/tools/make_xftmpl.c
@@ -99,6 +99,8 @@ static const struct keyword reserved_words[] = {
     {"WORD", TOKEN_WORD}
 };
 
+extern int getopt(int argc, char *const *argv, const char *optstring);
+
 static BOOL option_header;
 static char *option_inc_var_name = NULL;
 static char *option_inc_size_name = NULL;
-- 
1.8.3.4 (Apple Git-47)




More information about the wine-patches mailing list