include/SDL_platform.h
changeset 1402 d910939febfa
child 1406 39ca9a4b22f3
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/include/SDL_platform.h	Tue Feb 21 08:46:50 2006 +0000
     1.3 @@ -0,0 +1,104 @@
     1.4 +/*
     1.5 +    SDL - Simple DirectMedia Layer
     1.6 +    Copyright (C) 1997-2006 Sam Lantinga
     1.7 +
     1.8 +    This library is free software; you can redistribute it and/or
     1.9 +    modify it under the terms of the GNU Lesser General Public
    1.10 +    License as published by the Free Software Foundation; either
    1.11 +    version 2.1 of the License, or (at your option) any later version.
    1.12 +
    1.13 +    This library is distributed in the hope that it will be useful,
    1.14 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.15 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.16 +    Lesser General Public License for more details.
    1.17 +
    1.18 +    You should have received a copy of the GNU Lesser General Public
    1.19 +    License along with this library; if not, write to the Free Software
    1.20 +    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    1.21 +
    1.22 +    Sam Lantinga
    1.23 +    slouken@libsdl.org
    1.24 +*/
    1.25 +
    1.26 +/* Try to get a standard set of platform defines */
    1.27 +
    1.28 +#if defined(_AIX)
    1.29 +#undef __AIX__
    1.30 +#define __AIX__		1
    1.31 +#endif
    1.32 +#if defined(AMIGA) || defined(__AMIGA) || defined(__amigados__)
    1.33 +/* FIXME: is this the right test for AmigaOS? */
    1.34 +#undef __AMIGA__
    1.35 +#define __AMIGA__	1
    1.36 +#endif
    1.37 +#if defined(__BEOS__)
    1.38 +#undef __BEOS__
    1.39 +#define __BEOS__	1
    1.40 +#endif
    1.41 +#if defined(bsdi) || defined(__bsdi) || defined(__bsdi__)
    1.42 +#undef __BSDI__
    1.43 +#define __BSDI__	1
    1.44 +#endif
    1.45 +#if defined(DREAMCAST)
    1.46 +/* FIXME: is this the right test for Dreamcast? */
    1.47 +#undef __DREAMCAST__
    1.48 +#define __DREAMCAST__	1
    1.49 +#endif
    1.50 +#if defined(__FreeBSD__)
    1.51 +#undef __FREEBSD__
    1.52 +#define __FREEBSD__	1
    1.53 +#endif
    1.54 +#if defined(hpux) || defined(__hpux) || defined(__hpux__)
    1.55 +#undef __HPUX__
    1.56 +#define __HPUX__	1
    1.57 +#endif
    1.58 +#if defined(sgi) || defined(__sgi) || defined(__sgi__) || defined(_SGI_SOURCE)
    1.59 +#undef __IRIX__
    1.60 +#define __IRIX__	1
    1.61 +#endif
    1.62 +#if defined(linux) || defined(__linux) || defined(__linux__)
    1.63 +#undef __LINUX__
    1.64 +#define __LINUX__	1
    1.65 +#endif
    1.66 +#if defined(macintosh)
    1.67 +#undef __MACOS__
    1.68 +#define __MACOS__	1
    1.69 +#endif
    1.70 +#if defined(__GNUC__) && (defined(__APPLE_CC__) || defined(__APPLE_CPP__))
    1.71 +#undef __MACOSX__
    1.72 +#define __MACOSX__	1
    1.73 +#define TARGET_API_MAC_CARBON	1
    1.74 +#endif
    1.75 +#if defined(__NetBSD__)
    1.76 +#undef __NETBSD__
    1.77 +#define __NETBSD__	1
    1.78 +#endif
    1.79 +#if defined(__OpenBSD__)
    1.80 +#undef __OPENBSD__
    1.81 +#define __OPENBSD__	1
    1.82 +#endif
    1.83 +#if defined(__OS2__)
    1.84 +#undef __OS2__
    1.85 +#define __OS2__		1
    1.86 +#endif
    1.87 +#if defined(osf) || defined(__osf) || defined(__osf__) || defined(_OSF_SOURCE)
    1.88 +#undef __OSF__
    1.89 +#define __OSF__		1
    1.90 +#endif
    1.91 +#if defined(__QNXNTO__)
    1.92 +#undef __QNXNTO__
    1.93 +#define __QNXNTO__	1
    1.94 +#endif
    1.95 +#if defined(riscos) || defined(__riscos) || defined(__riscos__)
    1.96 +#undef __RISCOS__
    1.97 +#define __RISCOS__	1
    1.98 +#endif
    1.99 +#if defined(solaris) || defined(__solaris) || defined(__solaris__)
   1.100 +/* FIXME: is this the right test for Solaris? Check SDL_sunaudio.c */
   1.101 +#undef __SOLARIS__
   1.102 +#define __SOLARIS__	1
   1.103 +#endif
   1.104 +#if defined(WIN32) || defined(_WIN32)
   1.105 +#undef __WIN32__
   1.106 +#define __WIN32__	1
   1.107 +#endif