From 40d21d6d6d7a78d22f75ca2a513fd625cede2d67 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Tue, 24 Dec 2013 21:02:32 +0000 Subject: [PATCH] [IMAGEHLP] * Create a main header and move some inclusions to it. * Set the default debugging channel globally through the main header. CORE-7716 svn path=/trunk/; revision=61382 --- reactos/dll/win32/imagehlp/access.c | 14 +------------- reactos/dll/win32/imagehlp/imagehlp_main.c | 9 +-------- reactos/dll/win32/imagehlp/integrity.c | 14 +------------- reactos/dll/win32/imagehlp/modify.c | 13 +------------ reactos/dll/win32/imagehlp/precomp.h | 16 ++++++++++++++++ 5 files changed, 20 insertions(+), 46 deletions(-) create mode 100644 reactos/dll/win32/imagehlp/precomp.h diff --git a/reactos/dll/win32/imagehlp/access.c b/reactos/dll/win32/imagehlp/access.c index bf3e43615a8..98c27187ffa 100644 --- a/reactos/dll/win32/imagehlp/access.c +++ b/reactos/dll/win32/imagehlp/access.c @@ -18,19 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define WIN32_NO_STATUS - -#include -//#include -#include -#include -//#include "winnt.h" -#include -//#include "winerror.h" -#include -#include - -WINE_DEFAULT_DEBUG_CHANNEL(imagehlp); +#include "precomp.h" /*********************************************************************** * Data diff --git a/reactos/dll/win32/imagehlp/imagehlp_main.c b/reactos/dll/win32/imagehlp/imagehlp_main.c index b451a2d6c40..a2b79d49b8c 100644 --- a/reactos/dll/win32/imagehlp/imagehlp_main.c +++ b/reactos/dll/win32/imagehlp/imagehlp_main.c @@ -18,14 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define WIN32_NO_STATUS - -#include - -#include -#include -//#include "imagehlp.h" -//#include +#include "precomp.h" /**********************************************************************/ DECLSPEC_HIDDEN HANDLE IMAGEHLP_hHeap = NULL; diff --git a/reactos/dll/win32/imagehlp/integrity.c b/reactos/dll/win32/imagehlp/integrity.c index 5c56847da05..9d79fa8f61d 100644 --- a/reactos/dll/win32/imagehlp/integrity.c +++ b/reactos/dll/win32/imagehlp/integrity.c @@ -22,19 +22,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define WIN32_NO_STATUS - -#include - -#include -#include -//#include "winerror.h" -//#include "winternl.h" -//#include "winnt.h" -#include -#include - -WINE_DEFAULT_DEBUG_CHANNEL(imagehlp); +#include "precomp.h" /* * These functions are partially documented at: diff --git a/reactos/dll/win32/imagehlp/modify.c b/reactos/dll/win32/imagehlp/modify.c index a6fa890ff84..8a1d1910625 100644 --- a/reactos/dll/win32/imagehlp/modify.c +++ b/reactos/dll/win32/imagehlp/modify.c @@ -18,18 +18,7 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ -#define WIN32_NO_STATUS - -#include - -#include -#include -//#include "winternl.h" -//#include "winerror.h" -#include -#include - -WINE_DEFAULT_DEBUG_CHANNEL(imagehlp); +#include "precomp.h" static WORD CalcCheckSum(DWORD StartValue, LPVOID BaseAddress, DWORD WordCount); diff --git a/reactos/dll/win32/imagehlp/precomp.h b/reactos/dll/win32/imagehlp/precomp.h new file mode 100644 index 00000000000..27d9c0c965b --- /dev/null +++ b/reactos/dll/win32/imagehlp/precomp.h @@ -0,0 +1,16 @@ +#ifndef _IMAGEHLP_PCH_ +#define _IMAGEHLP_PCH_ + +#include + +#define WIN32_NO_STATUS + +#include +#include +#include +#include + +#include +WINE_DEFAULT_DEBUG_CHANNEL(imagehlp); + +#endif /* _IMAGEHLP_PCH_ */