home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue6 / SDL.ZIP / !SDL / include / SDL / h / SDL_platform < prev    next >
Encoding:
Text File  |  2006-09-20  |  2.6 KB  |  105 lines

  1. /*
  2.     SDL - Simple DirectMedia Layer
  3.     Copyright (C) 1997-2006 Sam Lantinga
  4.  
  5.     This library is free software; you can redistribute it and/or
  6.     modify it under the terms of the GNU Lesser General Public
  7.     License as published by the Free Software Foundation; either
  8.     version 2.1 of the License, or (at your option) any later version.
  9.  
  10.     This library is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.     Lesser General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU Lesser General Public
  16.     License along with this library; if not, write to the Free Software
  17.     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  18.  
  19.     Sam Lantinga
  20.     slouken@libsdl.org
  21. */
  22.  
  23. /* Try to get a standard set of platform defines */
  24.  
  25. #ifndef _SDL_platform_h
  26. #define _SDL_platform_h
  27.  
  28. #if defined(_AIX)
  29. #undef __AIX__
  30. #define __AIX__        1
  31. #endif
  32. #if defined(AMIGA) || defined(__AMIGA) || defined(__amigados__)
  33. #undef __AMIGA__
  34. #define __AMIGA__    1
  35. #endif
  36. #if defined(__BEOS__)
  37. #undef __BEOS__
  38. #define __BEOS__    1
  39. #endif
  40. #if defined(bsdi) || defined(__bsdi) || defined(__bsdi__)
  41. #undef __BSDI__
  42. #define __BSDI__    1
  43. #endif
  44. #if defined(_arch_dreamcast)
  45. #undef __DREAMCAST__
  46. #define __DREAMCAST__    1
  47. #endif
  48. #if defined(__FreeBSD__) || defined(__DragonFly__)
  49. #undef __FREEBSD__
  50. #define __FREEBSD__    1
  51. #endif
  52. #if defined(hpux) || defined(__hpux) || defined(__hpux__)
  53. #undef __HPUX__
  54. #define __HPUX__    1
  55. #endif
  56. #if defined(sgi) || defined(__sgi) || defined(__sgi__) || defined(_SGI_SOURCE)
  57. #undef __IRIX__
  58. #define __IRIX__    1
  59. #endif
  60. #if defined(linux) || defined(__linux) || defined(__linux__)
  61. #undef __LINUX__
  62. #define __LINUX__    1
  63. #endif
  64. #if defined(__APPLE__)
  65. #undef __MACOSX__
  66. #define __MACOSX__    1
  67. #elif defined(macintosh)
  68. #undef __MACOS__
  69. #define __MACOS__    1
  70. #endif
  71. #if defined(__NetBSD__)
  72. #undef __NETBSD__
  73. #define __NETBSD__    1
  74. #endif
  75. #if defined(__OpenBSD__)
  76. #undef __OPENBSD__
  77. #define __OPENBSD__    1
  78. #endif
  79. #if defined(__OS2__)
  80. #undef __OS2__
  81. #define __OS2__        1
  82. #endif
  83. #if defined(osf) || defined(__osf) || defined(__osf__) || defined(_OSF_SOURCE)
  84. #undef __OSF__
  85. #define __OSF__        1
  86. #endif
  87. #if defined(__QNXNTO__)
  88. #undef __QNXNTO__
  89. #define __QNXNTO__    1
  90. #endif
  91. #if defined(riscos) || defined(__riscos) || defined(__riscos__)
  92. #undef __RISCOS__
  93. #define __RISCOS__    1
  94. #endif
  95. #if defined(__SVR4)
  96. #undef __SOLARIS__
  97. #define __SOLARIS__    1
  98. #endif
  99. #if defined(WIN32) || defined(_WIN32)
  100. #undef __WIN32__
  101. #define __WIN32__    1
  102. #endif
  103.  
  104. #endif /* _SDL_platform_h */
  105.