diff --git a/Maketest.rules.in b/Maketest.rules.in
index 7c13aaaab16dfaa50096a82596a02969fdf9cf32..df10546be7bbae93c5c1c33bc7e6c3e7378625b9 100644
--- a/Maketest.rules.in
+++ b/Maketest.rules.in
@@ -9,7 +9,7 @@
 #
 
 DLLFLAGS     = @DLLFLAGS@
-DEFS         = -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS $(EXTRADEFS)
+DEFS         = -D__WINESRC__ $(EXTRADEFS)
 
 MODULE       = $(TESTDLL:%.dll=%)_test.exe
 TESTRESULTS  = $(C_SRCS:.c=.ok)
diff --git a/dlls/advapi32/tests/Makefile.in b/dlls/advapi32/tests/Makefile.in
index f3a92e97e6dca90e51a338161dec44381d95a94d..d8f772c714dba00ada8060fb1b403dc8328f5a11 100644
--- a/dlls/advapi32/tests/Makefile.in
+++ b/dlls/advapi32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = advapi32.dll
 IMPORTS   = ole32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	cred.c \
diff --git a/dlls/advpack/tests/Makefile.in b/dlls/advpack/tests/Makefile.in
index af9d2ee23f15469d87b8b13f2b2a3f89a4faab6d..ce765dc98ed7c6aaac4ec3ae4c8e363b529ea42d 100644
--- a/dlls/advpack/tests/Makefile.in
+++ b/dlls/advpack/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = advpack.dll
 IMPORTS   = cabinet advapi32 advpack
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	advpack.c \
diff --git a/dlls/avifil32/tests/Makefile.in b/dlls/avifil32/tests/Makefile.in
index abe1ad459803c65feef364013f404de7eac426df..ac6f1c757fcd25c9e5201ba2b98a439895e58a3d 100644
--- a/dlls/avifil32/tests/Makefile.in
+++ b/dlls/avifil32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = avifil32.dll
 IMPORTS   = avifil32 ole32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	api.c
diff --git a/dlls/cabinet/tests/Makefile.in b/dlls/cabinet/tests/Makefile.in
index 4525d6005e693d22e5e99762e7c19985ddeedade..34c2479f3eb71181551d2612b7aad039ac79d4b5 100644
--- a/dlls/cabinet/tests/Makefile.in
+++ b/dlls/cabinet/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = cabinet.dll
 IMPORTS   = cabinet
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	extract.c \
diff --git a/dlls/comctl32/tests/Makefile.in b/dlls/comctl32/tests/Makefile.in
index 670f52ec8a6a4cd66550a3dcf60aaae18bf155e8..55aea9c59604ced440fe706eeeb01e96abfd813e 100644
--- a/dlls/comctl32/tests/Makefile.in
+++ b/dlls/comctl32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = comctl32.dll
 IMPORTS   = comctl32 ole32 user32 gdi32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	comboex.c \
diff --git a/dlls/comdlg32/tests/Makefile.in b/dlls/comdlg32/tests/Makefile.in
index da9f69963836a84ea25a7a33237a3e9787db6ea3..9731d8980a0c3861c4d5425b5fb6523e484a98f5 100644
--- a/dlls/comdlg32/tests/Makefile.in
+++ b/dlls/comdlg32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = comdlg32.dll
 IMPORTS   = uuid shell32 ole32 comdlg32 winspool user32 gdi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	filedlg.c \
diff --git a/dlls/crypt32/tests/Makefile.in b/dlls/crypt32/tests/Makefile.in
index 1b8842b50245af5abced4d6f8cedc810f086fb39..8fdc7abfa337e35482c19182e597436af9807ff6 100644
--- a/dlls/crypt32/tests/Makefile.in
+++ b/dlls/crypt32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = crypt32.dll
 IMPORTS   = crypt32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	base64.c \
diff --git a/dlls/d3d8/tests/Makefile.in b/dlls/d3d8/tests/Makefile.in
index 9d375c9454dddf387334b3b4ee0aeb06831e55bb..873c4b5e8f8c75ac212353f59888037d2be3adea 100644
--- a/dlls/d3d8/tests/Makefile.in
+++ b/dlls/d3d8/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = d3d8.dll
 IMPORTS   = user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	device.c \
diff --git a/dlls/d3d9/tests/Makefile.in b/dlls/d3d9/tests/Makefile.in
index 380d105020566e5008d73edbae22fb959931fb83..954d933006c837ddf15547fb498001f625c0d4f5 100644
--- a/dlls/d3d9/tests/Makefile.in
+++ b/dlls/d3d9/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = d3d9.dll
 IMPORTS   = user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	d3d9ex.c \
diff --git a/dlls/d3dcompiler_43/tests/Makefile.in b/dlls/d3dcompiler_43/tests/Makefile.in
index 5c2bed85a994f05cbd0cf3b0df726ae168c00675..cd2a8ea2e415028b403a9700f8696e8bfc1cff87 100644
--- a/dlls/d3dcompiler_43/tests/Makefile.in
+++ b/dlls/d3dcompiler_43/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = d3dcompiler_43.dll
 IMPORTS   = d3dcompiler d3d9 d3dx9 user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	asm.c \
diff --git a/dlls/d3dx9_36/tests/Makefile.in b/dlls/d3dx9_36/tests/Makefile.in
index c99045c70ec231877a4879d2ef56a31cf3c323a5..a99bb63b451f2fc7bcbc849649b4e002d6e40fcd 100644
--- a/dlls/d3dx9_36/tests/Makefile.in
+++ b/dlls/d3dx9_36/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = d3dx9_36.dll
 IMPORTS   = d3dx9 d3d9 user32 gdi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	asm.c \
diff --git a/dlls/ddraw/tests/Makefile.in b/dlls/ddraw/tests/Makefile.in
index d5d30bb27087690c0ef624e26fe30751ed705bfd..fcf20633f8e1f99ab03cbca563953c129c64408c 100644
--- a/dlls/ddraw/tests/Makefile.in
+++ b/dlls/ddraw/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = ddraw.dll
 IMPORTS   = ddraw user32 gdi32 ole32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	d3d.c \
diff --git a/dlls/dinput/tests/Makefile.in b/dlls/dinput/tests/Makefile.in
index 9b04eb105691e2e2c6b3c2ddee4b8de079263a46..cb2c1ec25def6c43074889beb91027fcd6ab11f0 100644
--- a/dlls/dinput/tests/Makefile.in
+++ b/dlls/dinput/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = dinput.dll
 IMPORTS   = dinput ole32 version user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	device.c \
diff --git a/dlls/dinput8/tests/Makefile.in b/dlls/dinput8/tests/Makefile.in
index fe871185c044a3df3c32a352b4fcb5074587bbbf..9770842f25c6ef0d6f99ea0a44d289378bc67bcc 100644
--- a/dlls/dinput8/tests/Makefile.in
+++ b/dlls/dinput8/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = dinput8.dll
 IMPORTS   = dinput8 ole32 user32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	device.c \
diff --git a/dlls/dispex/tests/Makefile.in b/dlls/dispex/tests/Makefile.in
index 5c6b8598d00d341a25983d22fb8495a7024bdf8a..c200a8f9f927f6c7cc027e9d6ba55c62b852a56d 100644
--- a/dlls/dispex/tests/Makefile.in
+++ b/dlls/dispex/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = dispex.dll
 IMPORTS   = oleaut32 ole32 rpcrt4 user32 gdi32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	marshal.c
diff --git a/dlls/dnsapi/tests/Makefile.in b/dlls/dnsapi/tests/Makefile.in
index 8702a9dca8008fdf6167420ae204c71f0ece3236..18a4398b15b9d0164882bb81166e127e2d11440f 100644
--- a/dlls/dnsapi/tests/Makefile.in
+++ b/dlls/dnsapi/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = dnsapi.dll
 IMPORTS   = dnsapi
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	name.c \
diff --git a/dlls/dsound/tests/Makefile.in b/dlls/dsound/tests/Makefile.in
index f97f7168891ab98fd34d9b39eb1d3e099dab76ba..7302458c5b42950890e9c99d60332db9ce7e05e1 100644
--- a/dlls/dsound/tests/Makefile.in
+++ b/dlls/dsound/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = dsound.dll
 IMPORTS   = ole32 version user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	capture.c \
diff --git a/dlls/dssenh/tests/Makefile.in b/dlls/dssenh/tests/Makefile.in
index 8150cbfd1fa6eeeebfeba4764cab198bd5c7b3a4..e4c6e24e7da7e04e5dc4252e13cfa6775b2e86ae 100644
--- a/dlls/dssenh/tests/Makefile.in
+++ b/dlls/dssenh/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = dssenh.dll
 IMPORTS   = advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	dssenh.c
diff --git a/dlls/dxgi/tests/Makefile.in b/dlls/dxgi/tests/Makefile.in
index 08d2db115687b41767285a2260699fb2fcf9dcb5..02888af3be73be9f8da591794f3e5c93db9def8c 100644
--- a/dlls/dxgi/tests/Makefile.in
+++ b/dlls/dxgi/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = dxgi.dll
 IMPORTS   = dxgi user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	device.c
diff --git a/dlls/explorerframe/tests/Makefile.in b/dlls/explorerframe/tests/Makefile.in
index 921eaa9394ad3a13d3d2c8a8ce6d6d67179d0f90..727670ed5257680d5611365d9366c9c89a1fdd11 100644
--- a/dlls/explorerframe/tests/Makefile.in
+++ b/dlls/explorerframe/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = explorerframe.dll
 IMPORTS   = uuid shell32 ole32 user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	nstc.c
diff --git a/dlls/gdi32/tests/Makefile.in b/dlls/gdi32/tests/Makefile.in
index dee2fa45378816c10fe4f39e5ffdd8d595b89f0d..79b38efbe5d9fec51ae5ef3261cd8f14d5859858 100644
--- a/dlls/gdi32/tests/Makefile.in
+++ b/dlls/gdi32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = gdi32.dll
 IMPORTS   = user32 gdi32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	bitmap.c \
diff --git a/dlls/gdiplus/tests/Makefile.in b/dlls/gdiplus/tests/Makefile.in
index 1538eb089a3f240b2044639c9a6a35b101a5357b..c6526fc94e510b9afdb408de7ce01c01229a3f44 100644
--- a/dlls/gdiplus/tests/Makefile.in
+++ b/dlls/gdiplus/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = gdiplus.dll
 IMPORTS   = gdiplus ole32 user32 gdi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	brush.c \
diff --git a/dlls/ieframe/tests/Makefile.in b/dlls/ieframe/tests/Makefile.in
index ec9853e74dcbbaf01a61ec920ad200eb472e1f0a..661869e4f5d630f6a7020ebeef4c5159299dc655 100644
--- a/dlls/ieframe/tests/Makefile.in
+++ b/dlls/ieframe/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = ieframe.dll
 IMPORTS   = ole32 oleaut32 user32 gdi32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	ie.c \
diff --git a/dlls/imagehlp/tests/Makefile.in b/dlls/imagehlp/tests/Makefile.in
index 83a118f1a397da6a02766875f7545e3e94ffcb9f..8731a083521ed2195f33e57d478de1465ae30cfa 100644
--- a/dlls/imagehlp/tests/Makefile.in
+++ b/dlls/imagehlp/tests/Makefile.in
@@ -1,4 +1,5 @@
 TESTDLL   = imagehlp.dll
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	image.c \
diff --git a/dlls/imm32/tests/Makefile.in b/dlls/imm32/tests/Makefile.in
index 689352183a7ec6b6a5c53686cfa79eb1b114858d..6991d9422d011b54cc9cf8a07eb2cf06aeaa0e30 100644
--- a/dlls/imm32/tests/Makefile.in
+++ b/dlls/imm32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = imm32.dll
 IMPORTS   = imm32 user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	imm32.c
diff --git a/dlls/jscript/tests/Makefile.in b/dlls/jscript/tests/Makefile.in
index a3ad0ea6be87a087951ef69bcab553d14077d9ef..65fc9851941a43f433abfa595bc0071427b71e81 100644
--- a/dlls/jscript/tests/Makefile.in
+++ b/dlls/jscript/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = jscript.dll
 IMPORTS   = oleaut32 ole32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	activex.c \
diff --git a/dlls/kernel32/tests/Makefile.in b/dlls/kernel32/tests/Makefile.in
index dce27db503b9e0dccb4d576c4532e71c187b0e6a..2da2de1adbf4909b7932d88c8d13609b94c66974 100644
--- a/dlls/kernel32/tests/Makefile.in
+++ b/dlls/kernel32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = kernel32.dll
 IMPORTS   = user32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	actctx.c \
diff --git a/dlls/mmdevapi/tests/Makefile.in b/dlls/mmdevapi/tests/Makefile.in
index 532e535f79368d2d678596f5aef97eb66af329f4..137cb74aa65a7e74501882c70b1fa7ef48bd6514 100644
--- a/dlls/mmdevapi/tests/Makefile.in
+++ b/dlls/mmdevapi/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = mmdevapi.dll
 IMPORTS   = ole32 version user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	capture.c \
diff --git a/dlls/msacm32/tests/Makefile.in b/dlls/msacm32/tests/Makefile.in
index 2206ba945eb43c239a04e4010983e766e1663383..2f7707dae373e34f08e24278750fd3f391d773ac 100644
--- a/dlls/msacm32/tests/Makefile.in
+++ b/dlls/msacm32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = msacm32.dll
 IMPORTS   = msacm32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	msacm.c
diff --git a/dlls/mscms/tests/Makefile.in b/dlls/mscms/tests/Makefile.in
index b73061faf41433f43a53ab9905e815130a83ef28..9387a1a9210a2848e60d360bbc31fafa2073b3ae 100644
--- a/dlls/mscms/tests/Makefile.in
+++ b/dlls/mscms/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = mscms.dll
 IMPORTS   = advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	profile.c
diff --git a/dlls/msctf/tests/Makefile.in b/dlls/msctf/tests/Makefile.in
index 0a589f6068ade9071147f3e5e87026d5e5d50149..57afff2f54ee79bed1e48c0161c1f7e9eed20b73 100644
--- a/dlls/msctf/tests/Makefile.in
+++ b/dlls/msctf/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = msctf.dll
 IMPORTS   = ole32 user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	inputprocessor.c
diff --git a/dlls/mshtml/tests/Makefile.in b/dlls/mshtml/tests/Makefile.in
index 62468e6cc1876538ebb396ac8396fe6b8c1138c9..41d404003703b7205c5a40b715a389a513116dc8 100644
--- a/dlls/mshtml/tests/Makefile.in
+++ b/dlls/mshtml/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = mshtml.dll
 IMPORTS   = ole32 oleaut32 wininet user32 urlmon gdi32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	activex.c \
diff --git a/dlls/msi/tests/Makefile.in b/dlls/msi/tests/Makefile.in
index 1a0fba811ada6859ab6b74158a1d84f3a1ebe1d2..20c0512625be972e658f5ff1734eec6b39693b18 100644
--- a/dlls/msi/tests/Makefile.in
+++ b/dlls/msi/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = msi.dll
 IMPORTS   = cabinet msi shell32 ole32 oleaut32 user32 advapi32 version
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	action.c \
diff --git a/dlls/msvcrt/tests/Makefile.in b/dlls/msvcrt/tests/Makefile.in
index 2bb799054b4ab1e03ca3c6e6292770a66bac4d91..dfd2d37b11f14dfc4bbcad1b029c9911435242d2 100644
--- a/dlls/msvcrt/tests/Makefile.in
+++ b/dlls/msvcrt/tests/Makefile.in
@@ -2,6 +2,7 @@ TESTDLL   = msvcrt.dll
 APPMODE   = -mno-cygwin
 MODCFLAGS = @BUILTINFLAG@
 EXTRAINCL = -I$(top_srcdir)/include/msvcrt -I$(srcdir)/..
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	cpp.c \
diff --git a/dlls/msxml3/tests/Makefile.in b/dlls/msxml3/tests/Makefile.in
index 345d4549436bfd8cfcb7079c25e1d8310eb97bb9..38d20f1774ab0cc9269e6dc4d863e6a8e81045d6 100644
--- a/dlls/msxml3/tests/Makefile.in
+++ b/dlls/msxml3/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = msxml3.dll
 IMPORTS   = oleaut32 ole32 user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	domdoc.c \
diff --git a/dlls/ntdll/tests/Makefile.in b/dlls/ntdll/tests/Makefile.in
index 10d6674a49e942b991bae3dea9ed4d25ff331f6e..88488ee8482e49b0f0811fe57c06e9079180202b 100644
--- a/dlls/ntdll/tests/Makefile.in
+++ b/dlls/ntdll/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = ntdll.dll
 IMPORTS   = user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	atom.c \
diff --git a/dlls/ole32/tests/Makefile.in b/dlls/ole32/tests/Makefile.in
index 39e102f08b82fbdb112240aa7ec7ccd84d954feb..65d2d2cafbc0790b9d1ae50a2892d174242bc637 100644
--- a/dlls/ole32/tests/Makefile.in
+++ b/dlls/ole32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = ole32.dll
 IMPORTS   = oleaut32 ole32 user32 gdi32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	clipboard.c \
diff --git a/dlls/oleaut32/tests/Makefile.in b/dlls/oleaut32/tests/Makefile.in
index e47e2fe00356f5b05e9676dfed4085d51606000d..56204117fde3497e4e69ceed15629e9f8a724fcf 100644
--- a/dlls/oleaut32/tests/Makefile.in
+++ b/dlls/oleaut32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = oleaut32.dll
 IMPORTS   = oleaut32 ole32 rpcrt4 user32 gdi32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	dispatch.c \
diff --git a/dlls/oledb32/tests/Makefile.in b/dlls/oledb32/tests/Makefile.in
index bb1f0b3b839ebb79b2103a1c72b439d1ae5acf2a..019f1ed342a44a78f57c8d1ffbed1fa53abc5568 100644
--- a/dlls/oledb32/tests/Makefile.in
+++ b/dlls/oledb32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = oledb32.dll
 IMPORTS   = uuid shell32 oleaut32 ole32 user32 gdi32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	convert.c \
diff --git a/dlls/opengl32/tests/Makefile.in b/dlls/opengl32/tests/Makefile.in
index 98e474cd753636ef53a8d057c3e7a048317f4495..7bcb283c4e8d7d53b994b3e9c6dbe6f1e3c7a39b 100644
--- a/dlls/opengl32/tests/Makefile.in
+++ b/dlls/opengl32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = opengl32.dll
 IMPORTS   = opengl32 user32 gdi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	opengl.c
diff --git a/dlls/psapi/tests/Makefile.in b/dlls/psapi/tests/Makefile.in
index 849e3e592f2591b2bc9e1c7b52308f0f3701ffd4..f64a5d0fcfb88c95549b058cd7e9b3360b59b521 100644
--- a/dlls/psapi/tests/Makefile.in
+++ b/dlls/psapi/tests/Makefile.in
@@ -1,4 +1,5 @@
 TESTDLL   = psapi.dll
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	psapi_main.c
diff --git a/dlls/quartz/tests/Makefile.in b/dlls/quartz/tests/Makefile.in
index ae5fbaca57ddc583a756aa5b179c60fea7cbdf89..d4f7c419616f14494b9b0bbdcf8b585b42a8302b 100644
--- a/dlls/quartz/tests/Makefile.in
+++ b/dlls/quartz/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = quartz.dll
 IMPORTS   = oleaut32 ole32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	avisplitter.c \
diff --git a/dlls/riched20/tests/Makefile.in b/dlls/riched20/tests/Makefile.in
index 9532df8ab3e8cb746b0e89e2cee3fbd94a096211..b98fc2559bb51418702795d67390c441461ef53d 100644
--- a/dlls/riched20/tests/Makefile.in
+++ b/dlls/riched20/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = riched20.dll
 IMPORTS   = ole32 oleaut32 user32 gdi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	editor.c \
diff --git a/dlls/riched32/tests/Makefile.in b/dlls/riched32/tests/Makefile.in
index 31e5ce38d3a4f8739d1e4ad68832ec602a54aa25..29cfa12b96811293d146c72dd7f1869dd717bcbe 100644
--- a/dlls/riched32/tests/Makefile.in
+++ b/dlls/riched32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = riched32.dll
 IMPORTS   = ole32 user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	editor.c
diff --git a/dlls/rpcrt4/tests/Makefile.in b/dlls/rpcrt4/tests/Makefile.in
index 75a22788cd6fe5f58f836a10494fd9402ec4c94c..c80518b3f3471079229d28e9ec5b485f4d3004ea 100644
--- a/dlls/rpcrt4/tests/Makefile.in
+++ b/dlls/rpcrt4/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = rpcrt4.dll
 IMPORTS   = ole32 rpcrt4 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 EXTRAIDLFLAGS = --prefix-server=s_
 
 IDL_C_SRCS = server.idl
diff --git a/dlls/rsaenh/tests/Makefile.in b/dlls/rsaenh/tests/Makefile.in
index df87903d422f8d697cfa63c86380fbcddb49cec9..cd42b62e4b12932bbc1160f0d70a776c9bbb9f12 100644
--- a/dlls/rsaenh/tests/Makefile.in
+++ b/dlls/rsaenh/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = rsaenh.dll
 IMPORTS   = advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	rsaenh.c
diff --git a/dlls/secur32/tests/Makefile.in b/dlls/secur32/tests/Makefile.in
index 278cac4bef299ddeb2c77fd7eb083b17db13504c..f41d50b5317e0f9620edcb45ffb223e9001a81d0 100644
--- a/dlls/secur32/tests/Makefile.in
+++ b/dlls/secur32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = secur32.dll
 IMPORTS   = advapi32 ws2_32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	main.c \
diff --git a/dlls/setupapi/tests/Makefile.in b/dlls/setupapi/tests/Makefile.in
index 747479c854ad3325f02f75eb8f5abfca4bb52f72..a3fedc0d41a5de8f656ac0634761cf0e8a36f0a6 100644
--- a/dlls/setupapi/tests/Makefile.in
+++ b/dlls/setupapi/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = setupapi.dll
 IMPORTS   = setupapi user32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	devinst.c \
diff --git a/dlls/shell32/tests/Makefile.in b/dlls/shell32/tests/Makefile.in
index 4a361e4432c4f834d539bdee0afca2fda802da81..f47a1cf4af5f699de3ff3a8df2283e21e991ec5e 100644
--- a/dlls/shell32/tests/Makefile.in
+++ b/dlls/shell32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = shell32.dll
 IMPORTS   = shell32 ole32 oleaut32 user32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	appbar.c \
diff --git a/dlls/shlwapi/tests/Makefile.in b/dlls/shlwapi/tests/Makefile.in
index c28922f8dbdcf87c67a545b83d8a097f5fd7a535..526de1ea51438a7d280e8f2cb720f7815297ef08 100644
--- a/dlls/shlwapi/tests/Makefile.in
+++ b/dlls/shlwapi/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = shlwapi.dll
 IMPORTS   = shlwapi user32 ole32 oleaut32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	assoc.c \
diff --git a/dlls/sti/tests/Makefile.in b/dlls/sti/tests/Makefile.in
index e463e5cb990050b1c4ad642f0fd93534f9299ea0..4d4a4d089320e79e93f28b64e6c62f7dc9a7d2bf 100644
--- a/dlls/sti/tests/Makefile.in
+++ b/dlls/sti/tests/Makefile.in
@@ -1,4 +1,4 @@
-EXTRADEFS = -DCOM_NO_WINDOWS_H
+EXTRADEFS = -DCOM_NO_WINDOWS_H -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 TESTDLL   = sti.dll
 IMPORTS   = uuid ole32
 
diff --git a/dlls/twain_32/tests/Makefile.in b/dlls/twain_32/tests/Makefile.in
index 060b20e39f304082faf404d7862a3c5edcbd4087..4a1727fbd47a19a0fe39f2764264de5c8fe26d25 100644
--- a/dlls/twain_32/tests/Makefile.in
+++ b/dlls/twain_32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = twain_32.dll
 IMPORTS   = user32 gdi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	dsm.c
diff --git a/dlls/urlmon/tests/Makefile.in b/dlls/urlmon/tests/Makefile.in
index f5c9fd351a8b9e21256cabfa30102795a54de983..e2802dc10ef22642ce70f5bfd3d9862078ca3e38 100644
--- a/dlls/urlmon/tests/Makefile.in
+++ b/dlls/urlmon/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = urlmon.dll
 IMPORTS   = urlmon wininet ole32 oleaut32 user32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	generated.c \
diff --git a/dlls/user32/tests/Makefile.in b/dlls/user32/tests/Makefile.in
index eb5789adca27ff310996fba45cf24e16329ad1eb..88c44473fa6141e1a4af4783dca55b12966828e9 100644
--- a/dlls/user32/tests/Makefile.in
+++ b/dlls/user32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = user32.dll
 IMPORTS   = user32 gdi32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	broadcast.c \
diff --git a/dlls/usp10/tests/Makefile.in b/dlls/usp10/tests/Makefile.in
index 954a4a87acb4068b6fb07f390b485843f4b6adb1..b2a7451544f80e01f91ae7e7fe077ca3be30cea2 100644
--- a/dlls/usp10/tests/Makefile.in
+++ b/dlls/usp10/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = usp10.dll
 IMPORTS   = usp10 user32 gdi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	usp10.c
diff --git a/dlls/vbscript/tests/Makefile.in b/dlls/vbscript/tests/Makefile.in
index 88a57f7f9d87e508807dcd1d349ad3942b96b84c..6cd59d68eb3560e5109bb6d2ac704b965697bdbe 100644
--- a/dlls/vbscript/tests/Makefile.in
+++ b/dlls/vbscript/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = vbscript.dll
 IMPORTS   = oleaut32 ole32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	createobj.c \
diff --git a/dlls/version/tests/Makefile.in b/dlls/version/tests/Makefile.in
index 2653299f8ac01ac2a1f5efe5c62915b11594db13..26f106ad87b3fd006077da3b76a6a918d58d4381 100644
--- a/dlls/version/tests/Makefile.in
+++ b/dlls/version/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = version.dll
 IMPORTS   = version
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	info.c \
diff --git a/dlls/winhttp/tests/Makefile.in b/dlls/winhttp/tests/Makefile.in
index 01f577914f607ce8de21f6cfb37f8837b182c085..9e76c6c19d97b14c72450e2cd6deec7ffa0b0ed7 100644
--- a/dlls/winhttp/tests/Makefile.in
+++ b/dlls/winhttp/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = winhttp.dll
 IMPORTS   = winhttp oleaut32 ole32 crypt32 advapi32 ws2_32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	notification.c \
diff --git a/dlls/wininet/tests/Makefile.in b/dlls/wininet/tests/Makefile.in
index 4d8473f3be39fa926cddefbb9d45ce646b00b7b0..e9740f5333016cc7dc181eb56a7d345a4711e30d 100644
--- a/dlls/wininet/tests/Makefile.in
+++ b/dlls/wininet/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = wininet.dll
 IMPORTS   = wininet crypt32 ws2_32 user32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	ftp.c \
diff --git a/dlls/winmm/tests/Makefile.in b/dlls/winmm/tests/Makefile.in
index fcd8ece4d8a0bb8d201cb8f018e7ab0959d3efea..7900d57f0e54bf4e0b463a633ba2adadf03be57d 100644
--- a/dlls/winmm/tests/Makefile.in
+++ b/dlls/winmm/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = winmm.dll
 IMPORTS   = winmm user32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	capture.c \
diff --git a/dlls/winspool.drv/tests/Makefile.in b/dlls/winspool.drv/tests/Makefile.in
index f786fa9f7e39f2fcf0266aeaf82ea6c01e73c7f1..57a9a62e71fbc5f12c5dc9cefb254b0ca4c5cd03 100644
--- a/dlls/winspool.drv/tests/Makefile.in
+++ b/dlls/winspool.drv/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = winspool.drv
 IMPORTS   = winspool advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	info.c
diff --git a/dlls/wintrust/tests/Makefile.in b/dlls/wintrust/tests/Makefile.in
index b40817cac5561df94277be8822852271a055c217..3a875b2d2ed960a7aab272ce411b6c99e36cb582 100644
--- a/dlls/wintrust/tests/Makefile.in
+++ b/dlls/wintrust/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = wintrust.dll
 IMPORTS   = wintrust crypt32 advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	asn.c \
diff --git a/dlls/wldap32/tests/Makefile.in b/dlls/wldap32/tests/Makefile.in
index 5b1d2f1a1e36c53a1af6b4bea08e0426f640889d..b0b199fee02e4a7e215e055e44653e8cfc725b23 100644
--- a/dlls/wldap32/tests/Makefile.in
+++ b/dlls/wldap32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = wldap32.dll
 IMPORTS   = wldap32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	parse.c
diff --git a/dlls/ws2_32/tests/Makefile.in b/dlls/ws2_32/tests/Makefile.in
index 6d473b385a382ac8a781098c86a47c90433c6319..a447137407f80338515bc828a6a602a3b11d6c15 100644
--- a/dlls/ws2_32/tests/Makefile.in
+++ b/dlls/ws2_32/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = ws2_32.dll
 IMPORTS   = ws2_32 user32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	protocol.c \
diff --git a/programs/cmd/tests/Makefile.in b/programs/cmd/tests/Makefile.in
index 8fd1670648a0eca75b0d2aa6e931a047ddc4bed6..9d73c9915d1e7fbb6d85ce46eed8874ebde8e21d 100644
--- a/programs/cmd/tests/Makefile.in
+++ b/programs/cmd/tests/Makefile.in
@@ -1,4 +1,5 @@
 TESTDLL   = cmd.exe
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	batch.c
diff --git a/programs/services/tests/Makefile.in b/programs/services/tests/Makefile.in
index 8a492193639c64e7d38428735f27b8f9ef426ec1..2facc325b22936a3e787e3c3f60382346de32d34 100644
--- a/programs/services/tests/Makefile.in
+++ b/programs/services/tests/Makefile.in
@@ -1,5 +1,6 @@
 TESTDLL   = services.exe
 IMPORTS   = advapi32
+EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
 
 C_SRCS = \
 	service.c