Mercurial > hg > nnchat
diff ui.h @ 468:607bd4491e79
Fix win32 build.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 May 2012 07:07:03 +0300 |
parents | 796508f828f6 |
children | 56689f94e827 |
line wrap: on
line diff
--- a/ui.h Sat May 26 06:58:49 2012 +0300 +++ b/ui.h Sat May 26 07:07:03 2012 +0300 @@ -6,14 +6,17 @@ #ifndef LIBNNUI_H #define LIBNNUI_H -#include "th_types.h" -#include "th_string.h" - +#ifdef __WIN32 +// Undefine because both windows.h and curses.h #define it +#undef MOUSE_MOVED +#endif #ifdef HAVE_NCURSES_H #include <ncurses.h> #else #include <curses.h> #endif +#include "th_types.h" +#include "th_string.h" #define SET_MAX_WINDOWS (32)