From 1017bcc4486e8079bda94c0c5930c37607ca82d0 Mon Sep 17 00:00:00 2001 From: Hans Leidekker Date: Wed, 18 Jan 2006 17:33:10 +0100 Subject: [PATCH] winedump: Fix compilation of generated source. Include config.h in the .c file, not in the .h file. --- tools/winedump/output.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/winedump/output.c b/tools/winedump/output.c index 22185e1bcc3..ea11de4a1d9 100644 --- a/tools/winedump/output.c +++ b/tools/winedump/output.c @@ -145,8 +145,8 @@ void output_header_preamble (void) fprintf (hfile, "/*\n * %s.dll\n *\n * Generated from %s.dll by winedump.\n *\n" " * DO NOT SEND GENERATED DLLS FOR INCLUSION INTO WINE !\n * \n */" - "\n#ifndef __WINE_%s_DLL_H\n#define __WINE_%s_DLL_H\n\n#include " - "\"config.h\"\n#include \"windef.h\"\n#include \"wine/debug.h\"\n" + "\n#ifndef __WINE_%s_DLL_H\n#define __WINE_%s_DLL_H\n\n" + "#include \"windef.h\"\n#include \"wine/debug.h\"\n" "#include \"winbase.h\"\n#include \"winnt.h\"\n\n\n", OUTPUT_DLL_NAME, OUTPUT_DLL_NAME, OUTPUT_UC_DLL_NAME, OUTPUT_UC_DLL_NAME); @@ -211,7 +211,8 @@ void output_c_preamble (void) fprintf (cfile, "/*\n * %s.dll\n *\n * Generated from %s by winedump.\n *\n" " * DO NOT SUBMIT GENERATED DLLS FOR INCLUSION INTO WINE!\n * \n */" - "\n\n#include \"%s_dll.h\"\n\nWINE_DEFAULT_DEBUG_CHANNEL(%s);\n\n", + "\n\n#include \"config.h\"\n#include \"%s_dll.h\"\n\n" + "WINE_DEFAULT_DEBUG_CHANNEL(%s);\n\n", OUTPUT_DLL_NAME, globals.input_name, OUTPUT_DLL_NAME, OUTPUT_DLL_NAME);