=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: libport: Include stdlib. h on MSVC for getenv.

Alexandre Julliard julliard at winehq.org
Thu Dec 19 12:43:27 CST 2013


Module: wine
Branch: master
Commit: 9138dce3671e145d78ba9669a967402882421547
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9138dce3671e145d78ba9669a967402882421547

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Thu Dec 19 15:11:38 2013 +0100

libport: Include stdlib.h on MSVC for getenv.

---

 libs/port/getopt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libs/port/getopt.c b/libs/port/getopt.c
index fb1e315..7c97192 100644
--- a/libs/port/getopt.c
+++ b/libs/port/getopt.c
@@ -73,6 +73,8 @@
    contain conflicting prototypes for getopt.  */
 # include <stdlib.h>
 # include <unistd.h>
+#elif defined _MSC_VER
+# include <stdlib.h>
 #endif	/* GNU C library.  */
 
 #ifdef VMS




More information about the wine-cvs mailing list