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