From 0d496d7999483a4342d4fbf5cd3d94c9ce087ae8 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Thu, 11 Aug 2011 00:11:30 +0000 Subject: [PATCH] [WDMAUD.DRV] * Set wdmaud.h as a PCH. svn path=/trunk/; revision=53172 --- reactos/dll/win32/wdmaud.drv/CMakeLists.txt | 1 + reactos/dll/win32/wdmaud.drv/legacy.c | 2 -- reactos/dll/win32/wdmaud.drv/mixer.c | 14 +------------- reactos/dll/win32/wdmaud.drv/wdmaud.h | 4 +++- reactos/dll/win32/wdmaud.drv/wdmaud.rbuild | 1 + 5 files changed, 6 insertions(+), 16 deletions(-) diff --git a/reactos/dll/win32/wdmaud.drv/CMakeLists.txt b/reactos/dll/win32/wdmaud.drv/CMakeLists.txt index 5272364e516..4985bd23081 100644 --- a/reactos/dll/win32/wdmaud.drv/CMakeLists.txt +++ b/reactos/dll/win32/wdmaud.drv/CMakeLists.txt @@ -31,4 +31,5 @@ target_link_libraries(wdmaud.drv mmixer) add_importlibs(wdmaud.drv user32 winmm advapi32 msvcrt setupapi ksuser kernel32 ntdll) +add_pch(wdmaud.drv wdmaud.h) add_cd_file(TARGET wdmaud.drv DESTINATION reactos/system32 FOR all) diff --git a/reactos/dll/win32/wdmaud.drv/legacy.c b/reactos/dll/win32/wdmaud.drv/legacy.c index 90a00b4f8dc..1ee0f22559f 100644 --- a/reactos/dll/win32/wdmaud.drv/legacy.c +++ b/reactos/dll/win32/wdmaud.drv/legacy.c @@ -15,8 +15,6 @@ #include "wdmaud.h" -#include - #define KERNEL_DEVICE_NAME L"\\\\.\\wdmaud" HANDLE KernelHandle = INVALID_HANDLE_VALUE; diff --git a/reactos/dll/win32/wdmaud.drv/mixer.c b/reactos/dll/win32/wdmaud.drv/mixer.c index 8aa9b835b95..f26ee9d82b0 100644 --- a/reactos/dll/win32/wdmaud.drv/mixer.c +++ b/reactos/dll/win32/wdmaud.drv/mixer.c @@ -7,19 +7,7 @@ * PROGRAMMERS: Johannes Anderwald */ -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include "interface.h" - +#include "wdmaud.h" extern HANDLE KernelHandle; diff --git a/reactos/dll/win32/wdmaud.drv/wdmaud.h b/reactos/dll/win32/wdmaud.drv/wdmaud.h index 1374cea1a98..08e43c536de 100644 --- a/reactos/dll/win32/wdmaud.drv/wdmaud.h +++ b/reactos/dll/win32/wdmaud.drv/wdmaud.h @@ -1,15 +1,17 @@ #ifndef WDMAUD_H__ #define WDMAUD_H__ +#include #include #include #include #include #include #include - #include #include +#include +#include #include "interface.h" #include "mmixer.h" #include diff --git a/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild b/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild index 89269d330bb..abeb3320430 100644 --- a/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild +++ b/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild @@ -23,4 +23,5 @@ mmixer.c legacy.c wdmaud.rc + wdmaud.h