Module: wine Branch: refs/heads/master Commit: 1017bcc4486e8079bda94c0c5930c37607ca82d0 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=1017bcc4486e8079bda94c0c...
Author: Hans Leidekker hans@it.vu.nl Date: Wed Jan 18 17:33:10 2006 +0100
winedump: Fix compilation of generated source. Include config.h in the .c file, not in the .h file.
---
tools/winedump/output.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/tools/winedump/output.c b/tools/winedump/output.c index 22185e1..ea11de4 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);