Commit 1017bcc4 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winedump: Fix compilation of generated source.

Include config.h in the .c file, not in the .h file.
parent 4202824e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment