//Copyright (C) 1997-2001 ZSNES Team ( zsknight@zsnes.com / _demo_@zsnes.com ) // //This program is free software; you can redistribute it and/or //modify it under the terms of the GNU General Public License //as published by the Free Software Foundation; either //version 2 of the License, or (at your option) any later //version. // //This program is distributed in the hope that it will be useful, //but WITHOUT ANY WARRANTY; without even the implied warranty of //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //GNU General Public License for more details. // //You should have received a copy of the GNU General Public License //along with this program; if not, write to the Free Software //Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. /*************************************\ * Global Definitions and Headers File * \*************************************/ // Standard stuff #include #include #include "fcntl.h" #include #include #include "config.h" // General time.h checking #if TIME_WITH_SYS_TIME #include #include #else # if HAVE_SYS_TIME_H #include # else #include # endif #endif // General dirent.h stuff #if HAVE_DIRENT_H #include #else # if HAVE_SYS_NDIR_H #include # endif # if HAVE_SYS_DIR_H #include # endif # if HAVE_NDIR_H #include # endif #endif // more standard stuff #include #include #include // unistd.h stuff //#if HAVE_UNISTD_H //Small hack for now #if unix #include #include #endif // opengl stuff #ifdef __OPENGL__ #include #endif // os specific stuff #ifdef __QNXNTO__ /* QNX6 has getpagesize() commented out in unistd.h, however it's a static value that we can just define */ #define getpagesize() 4096 #endif #ifdef __LINUX__ #include "SDL.h" #include #include #include #include #include #include #include #include #include #include #include #include #ifndef NO_PNG #include #endif #endif #ifdef __LINUX__ #ifndef __FreeBSD__ #include #else #include #endif #endif