public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: insight@sourceware.org
Subject: [patch] fix building of gdbtk-interp.c for win32
Date: Fri, 27 Jul 2007 18:02:00 -0000	[thread overview]
Message-ID: <200707271403.31571.vapier@gentoo.org> (raw)


[-- 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);
 

                 reply	other threads:[~2007-07-27 18:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200707271403.31571.vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=insight@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).