Alexandre Julliard : include: Don't include stdlib.h in wine/port.h.

Alexandre Julliard julliard at winehq.org
Wed Nov 3 16:42:01 CDT 2021


Module: wine
Branch: master
Commit: ef9a0f3bc35d24db0d097aba838f6b8fd6e507f1
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=ef9a0f3bc35d24db0d097aba838f6b8fd6e507f1

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Nov  3 10:43:13 2021 +0100

include: Don't include stdlib.h in wine/port.h.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/bcrypt/gnutls.c            | 1 +
 dlls/mountmgr.sys/device.c      | 1 +
 dlls/mountmgr.sys/mountmgr.c    | 1 +
 dlls/netapi32/unixlib.c         | 1 +
 dlls/secur32/schannel_gnutls.c  | 1 +
 dlls/winevulkan/make_vulkan     | 5 +++--
 dlls/winevulkan/vulkan_thunks.c | 3 ++-
 include/wine/port.h             | 1 -
 8 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/dlls/bcrypt/gnutls.c b/dlls/bcrypt/gnutls.c
index a015d85f85d..863b47f50eb 100644
--- a/dlls/bcrypt/gnutls.c
+++ b/dlls/bcrypt/gnutls.c
@@ -28,6 +28,7 @@
 #ifdef HAVE_GNUTLS_CIPHER_INIT
 
 #include <stdarg.h>
+#include <stdlib.h>
 #include <assert.h>
 #include <gnutls/gnutls.h>
 #include <gnutls/crypto.h>
diff --git a/dlls/mountmgr.sys/device.c b/dlls/mountmgr.sys/device.c
index aa6db175e69..23134787ba0 100644
--- a/dlls/mountmgr.sys/device.c
+++ b/dlls/mountmgr.sys/device.c
@@ -25,6 +25,7 @@
 #include <errno.h>
 #include <stdarg.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/time.h>
diff --git a/dlls/mountmgr.sys/mountmgr.c b/dlls/mountmgr.sys/mountmgr.c
index 27f642df7e8..2dff533f221 100644
--- a/dlls/mountmgr.sys/mountmgr.c
+++ b/dlls/mountmgr.sys/mountmgr.c
@@ -31,6 +31,7 @@
 #endif
 
 #include <stdarg.h>
+#include <stdlib.h>
 #include <unistd.h>
 #ifdef HAVE_SYS_STAT_H
 #include <sys/stat.h>
diff --git a/dlls/netapi32/unixlib.c b/dlls/netapi32/unixlib.c
index 565327ba4b1..0c86b619c99 100644
--- a/dlls/netapi32/unixlib.c
+++ b/dlls/netapi32/unixlib.c
@@ -29,6 +29,7 @@
 #ifdef SONAME_LIBNETAPI
 
 #include <stdarg.h>
+#include <stdlib.h>
 #include <fcntl.h>
 #include <errno.h>
 #ifdef HAVE_SYS_WAIT_H
diff --git a/dlls/secur32/schannel_gnutls.c b/dlls/secur32/schannel_gnutls.c
index 4d8109721ce..b817a37c4a4 100644
--- a/dlls/secur32/schannel_gnutls.c
+++ b/dlls/secur32/schannel_gnutls.c
@@ -28,6 +28,7 @@
 
 #include <stdarg.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 #ifdef SONAME_LIBGNUTLS
 #include <gnutls/gnutls.h>
diff --git a/dlls/winevulkan/make_vulkan b/dlls/winevulkan/make_vulkan
index e84442d7a79..f88f15b49dd 100755
--- a/dlls/winevulkan/make_vulkan
+++ b/dlls/winevulkan/make_vulkan
@@ -2673,8 +2673,9 @@ class VkGenerator(object):
         f.write("#pragma makedep unix\n")
         f.write("#endif\n\n")
 
-        f.write("#include \"config.h\"\n")
-        f.write("#include \"wine/port.h\"\n\n")
+        f.write("#include \"config.h\"\n\n")
+
+        f.write("#include <stdlib.h>\n\n")
 
         f.write("#include \"vulkan_private.h\"\n\n")
 
diff --git a/dlls/winevulkan/vulkan_thunks.c b/dlls/winevulkan/vulkan_thunks.c
index 97dbc4664ec..eeda463d7a7 100644
--- a/dlls/winevulkan/vulkan_thunks.c
+++ b/dlls/winevulkan/vulkan_thunks.c
@@ -14,7 +14,8 @@
 #endif
 
 #include "config.h"
-#include "wine/port.h"
+
+#include <stdlib.h>
 
 #include "vulkan_private.h"
 
diff --git a/include/wine/port.h b/include/wine/port.h
index 8520fbc05b1..694032a33bc 100644
--- a/include/wine/port.h
+++ b/include/wine/port.h
@@ -30,7 +30,6 @@
 #endif
 
 #include <sys/types.h>
-#include <stdlib.h>
 
 
 /****************************************************************




More information about the wine-cvs mailing list