1 2 /************************************************************************** 3 * Copyright (C) 2007-2015 Ruben Pollan Bella <meskio@sindominio.net> * 4 * * 5 * This file is part of TuDu. * 6 * * 7 * TuDu is free software; you can redistribute it and/or modify * 8 * it under the terms of the GNU General Public License as published by * 9 * the Free Software Foundation; version 3 of the License. * 10 * * 11 * TuDu is distributed in the hope that it will be useful, * 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 14 * GNU General Public License for more details. * 15 * * 16 * You should have received a copy of the GNU General Public License * 17 * along with this program. If not, see <http://www.gnu.org/licenses/>. * 18 **************************************************************************/ 19 20 #ifndef DEFS_H 21 #define DEFS_H 22 23 #include "defs.h" 24 25 /* include curses */ 26 #define _XOPEN_SOURCE_EXTENDED 27 #ifdef HAVE_XCURSES_H 28 #include <xcurses.h> 29 #elif defined(HAVE_NCURSESW_CURSES_H) 30 #include <ncursesw/curses.h> 31 #elif defined(HAVE_NCURSES_CURSES_H) 32 #include <ncurses/curses.h> 33 #else 34 #include <curses.h> 35 #endif 36 37 /* system includes */ 38 #include <string> 39 #include <vector> 40 #include <map> 41 #include <fstream> 42 #include <list> 43 #include <stack> 44 #include <algorithm> 45 #include <set> 46 #include <ctime> 47 #include <cstring> 48 #include <csignal> 49 #include <cstdio> 50 #include <cstdlib> 51 #include <sys/types.h> 52 #include <sys/wait.h> 53 #include <sys/stat.h> 54 #include <unistd.h> 55 #include <fcntl.h> 56 #include <locale> 57 #include <cwchar> 58 #include <clocale> 59 #include <climits> 60 #include <iostream> 61 #include <iomanip> 62 #include <sstream> 63 #include <cerrno> 64 65 using namespace std; 66 67 #endif 68