winedump: Fix compilation of generated source.
Include config.h in the .c file, not in the .h file.
This commit is contained in:
parent
4202824e9e
commit
1017bcc448
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue