*** empty log message ***
This commit is contained in:
138
zsnes/src/gblhdr.h
Normal file
138
zsnes/src/gblhdr.h
Normal file
@@ -0,0 +1,138 @@
|
||||
//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 <math.h>
|
||||
#include <ctype.h>
|
||||
#include "fcntl.h"
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
|
||||
// General time.h checking
|
||||
|
||||
#if TIME_WITH_SYS_TIME
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#else
|
||||
# if HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
# else
|
||||
#include <time.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// General dirent.h stuff
|
||||
|
||||
#if HAVE_DIRENT_H
|
||||
#include <dirent.h>
|
||||
#else
|
||||
# if HAVE_SYS_NDIR_H
|
||||
#include <sys/ndir.h>
|
||||
# endif
|
||||
# if HAVE_SYS_DIR_H
|
||||
#include <sys/dir.h>
|
||||
# endif
|
||||
# if HAVE_NDIR_H
|
||||
#include <ndir.h>
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// General stdc header stuff, including memory.h stuff, like the fact that
|
||||
// memcpy, and memmove are easily definable...
|
||||
|
||||
#ifdef ZDOS
|
||||
#define STDC_HEADERS
|
||||
#endif
|
||||
#ifdef _MSC_VER
|
||||
#define STDC_HEADERS
|
||||
#endif
|
||||
#if STDC_HEADERS
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#else
|
||||
# ifndef HAVE_MEMCPY
|
||||
#define memcpy(d, s, n) bcopy ((s), (d), (n))
|
||||
#define memmove(d, s, n) bcopy ((s), (d), (n))
|
||||
# endif
|
||||
#endif
|
||||
|
||||
// unistd.h stuff
|
||||
|
||||
#if HAVE_UNISTD_H
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
// opengl stuff
|
||||
|
||||
#ifdef __OPENGL__
|
||||
#include <GL/gl.h>
|
||||
#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 <sys/mman.h>
|
||||
#include <limits.h>
|
||||
#include <glob.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
#include <utime.h>
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <io.h>
|
||||
#include <windows.h>
|
||||
#include <winsock.h>
|
||||
#include <winuser.h>
|
||||
#include <dsound.h>
|
||||
#include <dinput.h>
|
||||
#include <direct.h>
|
||||
#include <sys/stat.h>
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
#ifdef __LINUX__
|
||||
#ifndef __FreeBSD__
|
||||
#include <asm/ioctls.h>
|
||||
#else
|
||||
#include <sys/filio.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef ZDOS
|
||||
#include <dos.h>
|
||||
#endif
|
||||
Reference in New Issue
Block a user