]> git.wh0rd.org Git - patches.git/blob - gdb-gdbtk-pull-in-windows.patch
scummvm random work
[patches.git] / gdb-gdbtk-pull-in-windows.patch
1 2007-07-26  Mike Frysinger  <vapier@gentoo.org>
2
3         * generic/gdbtk-interp.c: For _WIN32, define WIN32_LEAN_AND_MEAN
4         and include windows.h.
5
6 Index: gdb/gdbtk/generic/gdbtk-interp.c
7 ===================================================================
8 RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-interp.c,v
9 retrieving revision 1.8
10 diff -u -p -r1.8 gdbtk-interp.c
11 --- gdb/gdbtk/generic/gdbtk-interp.c    23 Dec 2005 18:23:16 -0000      1.8
12 +++ gdb/gdbtk/generic/gdbtk-interp.c    26 Jul 2007 09:08:20 -0000
13 @@ -34,6 +34,11 @@
14  #include "tk.h"
15  #include "gdbtk.h"
16  
17 +#ifdef _WIN32
18 +#define WIN32_LEAN_AND_MEAN
19 +#include <windows.h>
20 +#endif
21 +
22  static void gdbtk_command_loop (void);
23  static void hack_disable_interpreter_exec (char *, int);
24