[PATCH 1/3] port: MSVC provides a correct getenv prototype.
Stefan Dösinger
stefan at codeweavers.com
Thu Dec 19 08:11:38 CST 2013
---
libs/port/getopt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libs/port/getopt.c b/libs/port/getopt.c
index fb1e315..08c1415 100644
--- a/libs/port/getopt.c
+++ b/libs/port/getopt.c
@@ -68,11 +68,13 @@
/* This needs to come after some library #include
to get __GNU_LIBRARY__ defined. */
-#ifdef __GNU_LIBRARY__
+#if defined __GNU_LIBRARY__
/* Don't include stdlib.h for non-GNU C libraries because some of them
contain conflicting prototypes for getopt. */
# include <stdlib.h>
# include <unistd.h>
+#elif defined _MSC_VER
+# include <stdlib.h>
#endif /* GNU C library. */
#ifdef VMS
--
1.8.3.4 (Apple Git-47)
More information about the wine-patches
mailing list