I put together a consistent set of platform #defines for the platforms
SDL supports. Can you make sure your platform is listed and detected
properly with this header?
Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment
-------------- next part --------------
/*
SDL - Simple DirectMedia Layer
Copyright © 1997-2006 Sam Lantinga
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
@slouken
*/
/* Try to get a standard set of platform defines */
#if defined(_AIX)
#undef AIX
#define AIX 1
#endif
#if defined(AMIGA) || defined(__AMIGA) || defined(amigados)
/* FIXME: is this the right test for AmigaOS? /
#undef AMIGA
#define AMIGA 1
#endif
#if defined(BEOS)
#undef BEOS
#define BEOS 1
#endif
#if defined(bsdi) || defined(__bsdi) || defined(bsdi)
#undef BSDI
#define BSDI 1
#endif
#if defined(DREAMCAST)
/ FIXME: is this the right test for Dreamcast? /
#undef DREAMCAST
#define DREAMCAST 1
#endif
#if defined(FreeBSD)
#undef FREEBSD
#define FREEBSD 1
#endif
#if defined(hpux) || defined(__hpux) || defined(hpux)
#undef HPUX
#define HPUX 1
#endif
#if defined(sgi) || defined(__sgi) || defined(sgi) || defined(_SGI_SOURCE)
#undef IRIX
#define IRIX 1
#endif
#if defined(linux) || defined(__linux) || defined(linux)
#undef LINUX
#define LINUX 1
#endif
#if defined(macintosh)
#undef MACOS
#define MACOS 1
#endif
#if defined(GNUC) && (defined(APPLE_CC) || defined(APPLE_CPP))
#undef MACOSX
#define MACOSX 1
#define TARGET_API_MAC_CARBON 1
#endif
#if defined(NetBSD)
#undef NETBSD
#define NETBSD 1
#endif
#if defined(OpenBSD)
#undef OPENBSD
#define OPENBSD 1
#endif
#if defined(OS2)
#undef OS2
#define OS2 1
#endif
#if defined(osf) || defined(__osf) || defined(osf) || defined(_OSF_SOURCE)
#undef OSF
#define OSF 1
#endif
#if defined(QNXNTO)
#undef QNXNTO
#define QNXNTO 1
#endif
#if defined(riscos) || defined(__riscos) || defined(riscos)
#undef RISCOS
#define RISCOS 1
#endif
#if defined(solaris) || defined(__solaris) || defined(solaris)
/ FIXME: is this the right test for Solaris? Check SDL_sunaudio.c */
#undef SOLARIS
#define SOLARIS 1
#endif
#if defined(WIN32) || defined(_WIN32)
#undef WIN32
#define WIN32 1
#endif