X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Fgdb_curses.h;h=94a56a15a2265618dd192fc8936bdaf5c6475059;hb=5aa03310cef09e8c41aaa05152d9570dfe62ba81;hp=7d8d09a184c6d41d070e9bc379f8856b92f802d0;hpb=4c38e0a4fcb69f8586d8db0b9cdb8dbab5980811;p=platform%2Fupstream%2Fbinutils.git diff --git a/gdb/gdb_curses.h b/gdb/gdb_curses.h index 7d8d09a..94a56a1 100644 --- a/gdb/gdb_curses.h +++ b/gdb/gdb_curses.h @@ -1,7 +1,6 @@ /* Portable . - Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 - Free Software Foundation, Inc. + Copyright (C) 2004-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -21,6 +20,18 @@ #ifndef GDB_CURSES_H #define GDB_CURSES_H 1 +#ifdef __MINGW32__ +/* Windows API headers, included e.g. by serial.h, define MOUSE_MOVED, + and so does PDCurses's curses.h, but for an entirely different + purpose. Since we don't use the Windows semantics of MOUSE_MOVED + anywhere, avoid compiler warnings by undefining MOUSE_MOVED before + including curses.h. */ +#undef MOUSE_MOVED +/* Likewise, KEY_EVENT is defined by ncurses.h, but also by Windows + API headers. */ +#undef KEY_EVENT +#endif + #if defined (HAVE_NCURSES_NCURSES_H) #include #elif defined (HAVE_NCURSES_H) @@ -43,4 +54,12 @@ extern int tgetnum (const char *); #endif +/* SunOS's curses.h has a '#define reg register' in it. Thank you Sun. */ +/* Ditto for: + -bash-4.2$ uname -a + AIX power-aix 1 7 00F84C0C4C00 */ +#ifdef reg +#undef reg +#endif + #endif /* gdb_curses.h */