public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [patch] fix building of gdbtk-interp.c for win32
@ 2007-07-27 18:02 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2007-07-27 18:02 UTC (permalink / raw)
  To: insight


[-- Attachment #1.1: Type: text/plain, Size: 154 bytes --]

the gdbtk-interp.c file uses the windows MessageBox() function but fails to 
pull in the appropriate windows header.  attached patch fixes this.
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 827 bytes --]

[-- Attachment #2: gdb-gdbtk-pull-in-windows.patch --]
[-- Type: text/x-diff, Size: 728 bytes --]

2007-07-26  Mike Frysinger  <vapier@gentoo.org>

	* generic/gdbtk-interp.c: For _WIN32, define WIN32_LEAN_AND_MEAN
	and include windows.h.

Index: gdb/gdbtk/generic/gdbtk-interp.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk-interp.c,v
retrieving revision 1.8
diff -u -p -r1.8 gdbtk-interp.c
--- gdb/gdbtk/generic/gdbtk-interp.c	23 Dec 2005 18:23:16 -0000	1.8
+++ gdb/gdbtk/generic/gdbtk-interp.c	26 Jul 2007 09:08:20 -0000
@@ -34,6 +34,11 @@
 #include "tk.h"
 #include "gdbtk.h"
 
+#ifdef _WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#endif
+
 static void gdbtk_command_loop (void);
 static void hack_disable_interpreter_exec (char *, int);
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-27 18:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-27 18:02 [patch] fix building of gdbtk-interp.c for win32 Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).