ws2_32: Include inttypes.h for UINT32_MAX.
Francois Gouget
fgouget at free.fr
Wed Apr 29 04:34:16 CDT 2015
This fixes compilation on FreeBSD.
---
The only other files that use UINT32_MAX are:
* The .yy.c files. These are generated and always do an ifndef+define.
* dlls/mshtml/nsembed.c though it calls it PR_UINT32_MAX for some reason.
* dlls/jscript/string.c which simply defines it.
* dlls/winemac.drv/macdrv_cocoa.h which presumably gets it from the Mac
OS X headers.
Maybe mshtml and jscript should use inttypes.h, or to the contrary,
maybe ws2_32 should use the ifndef+define approach.
dlls/ws2_32/socket.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 52b5394..cc22e8a 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -33,6 +33,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
+#include <inttypes.h>
#ifdef HAVE_SYS_IPC_H
# include <sys/ipc.h>
#endif
--
2.1.4
More information about the wine-patches
mailing list