public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* mingw --enable-tui
@ 2020-11-22 11:44 gmail Vladimir Koković
  2020-11-22 12:13 ` gmail Vladimir Koković
  2020-11-22 15:31 ` Eli Zaretskii
  0 siblings, 2 replies; 10+ messages in thread
From: gmail Vladimir Koković @ 2020-11-22 11:44 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

Hi,

I managed to make mingw cross build 32 and 64, but I had to change 
gdb/tui//tui-win.c because of mingw64.


Vladimir Koković, DP senior(70),

Serbia, Belgrade, 22.November 2020


[-- Attachment #2: tui-win-c.patch --]
[-- Type: text/x-patch, Size: 948 bytes --]

# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- a/tui-win.c
+++ b/tui-win.c
@@ -118,6 +118,17 @@
    The list of values must be terminated by a NULL.
    After the NULL value, an entry defines the default.  */
 static struct tui_translate tui_border_mode_translate[] = {
+#ifdef __MINGW64__
+  { "normal",		(int)A_NORMAL },
+  { "standout",		(int)A_STANDOUT },
+  { "reverse",		(int)A_REVERSE },
+  { "half",		(int)A_DIM },
+  { "half-standout",	(int)A_DIM | (int)A_STANDOUT },
+  { "bold",		(int)A_BOLD },
+  { "bold-standout",	(int)A_BOLD | (int)A_STANDOUT },
+  { 0, 0 },
+  { "normal",		(int)A_NORMAL }
+#else
   { "normal",		A_NORMAL },
   { "standout",		A_STANDOUT },
   { "reverse",		A_REVERSE },
@@ -127,6 +138,7 @@
   { "bold-standout",	A_BOLD | A_STANDOUT },
   { 0, 0 },
   { "normal",		A_NORMAL }
+#endif
 };
 
 /* Translation tables for border-kind, one for each border
 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-11-22 18:24 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-22 11:44 mingw --enable-tui gmail Vladimir Koković
2020-11-22 12:13 ` gmail Vladimir Koković
2020-11-22 15:31 ` Eli Zaretskii
2020-11-22 16:19   ` gmail Vladimir Koković
2020-11-22 16:23     ` Eli Zaretskii
2020-11-22 16:35       ` gmail Vladimir Koković
2020-11-22 16:55         ` Eli Zaretskii
2020-11-22 17:06           ` gmail Vladimir Koković
2020-11-22 17:20     ` Tom Tromey
2020-11-22 18:24       ` Eli Zaretskii

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).