comparison 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
comparison
equal deleted inserted replaced
467:4b2f94b1a3c1 468:607bd4491e79
4 * (C) Copyright 2008-2012 Tecnic Software productions (TNSP) 4 * (C) Copyright 2008-2012 Tecnic Software productions (TNSP)
5 */ 5 */
6 #ifndef LIBNNUI_H 6 #ifndef LIBNNUI_H
7 #define LIBNNUI_H 7 #define LIBNNUI_H
8 8
9 #include "th_types.h" 9 #ifdef __WIN32
10 #include "th_string.h" 10 // Undefine because both windows.h and curses.h #define it
11 11 #undef MOUSE_MOVED
12 #endif
12 #ifdef HAVE_NCURSES_H 13 #ifdef HAVE_NCURSES_H
13 #include <ncurses.h> 14 #include <ncurses.h>
14 #else 15 #else
15 #include <curses.h> 16 #include <curses.h>
16 #endif 17 #endif
18 #include "th_types.h"
19 #include "th_string.h"
17 20
18 21
19 #define SET_MAX_WINDOWS (32) 22 #define SET_MAX_WINDOWS (32)
20 #define NN_BACKBUF_LEN (512) // Backbuffer size (in lines) 23 #define NN_BACKBUF_LEN (512) // Backbuffer size (in lines)
21 24