urlmon/tests: Fix compilation with the PSDK headers.

Francois Gouget fgouget at free.fr
Mon Nov 6 17:44:08 CST 2006

On Linux we include the Unix stdlib.h header which includes stddef.h which defines offsetof(). But on Windows we get the PSDK stdlib.h header which does not include stddef.h, so we must include it manually in misc.c.
 dlls/urlmon/tests/misc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/urlmon/tests/misc.c b/dlls/urlmon/tests/misc.c
old mode 100644
new mode 100755
index 0fa5f32..425de1b
--- a/dlls/urlmon/tests/misc.c
+++ b/dlls/urlmon/tests/misc.c
@@ -21,6 +21,7 @@ #define CONST_VTABLE
 #include <wine/test.h>
 #include <stdarg.h>
+#include <stddef.h>
 #include "windef.h"
 #include "winbase.h"

More information about the wine-patches mailing list