/* Copyright (C) 1997-2007 ZSNES Team ( zsKnight, _Demo_, pagefault, Nach ) http://www.zsnes.com http://sourceforge.net/projects/zsnes https://zsnes.bountysource.com This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. 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. */ #ifndef GBLHDR_H #define GBLHDR_H /*************************************\ * 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__ #ifndef __MACOSX__ #include #else #include #endif #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 __UNIXSDL__ #include "SDL.h" #include #ifndef __BEOS__ #include #include #include #endif #include #include #include #include #include #include #include #include #ifndef NO_PNG #include #endif #endif #ifdef __UNIXSDL__ #ifdef linux #include #else #include #endif #endif #endif