include/SDL_platform.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 20 Oct 2013 20:41:30 -0700
changeset 7856 cb37776926ad
parent 7678 286c42d7c5ed
child 7981 6d538bc1b395
child 8535 e8ee0708ef5c
permissions -rw-r--r--
Added __WINDOWS__ to reflect both 32 and 64-bit windows platforms
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     1
/*
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
     2
  Simple DirectMedia Layer
6885
700f1b25f77f Happy New Year!
Sam Lantinga <slouken@libsdl.org>
parents: 6138
diff changeset
     3
  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     4
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
     5
  This software is provided 'as-is', without any express or implied
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
     6
  warranty.  In no event will the authors be held liable for any damages
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
     7
  arising from the use of this software.
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     8
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
     9
  Permission is granted to anyone to use this software for any purpose,
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    10
  including commercial applications, and to alter it and redistribute it
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    11
  freely, subject to the following restrictions:
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    12
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    13
  1. The origin of this software must not be misrepresented; you must not
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    14
     claim that you wrote the original software. If you use this software
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    15
     in a product, an acknowledgment in the product documentation would be
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    16
     appreciated but is not required.
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    17
  2. Altered source versions must be plainly marked as such, and must not be
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    18
     misrepresented as being the original software.
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    19
  3. This notice may not be removed or altered from any source distribution.
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    20
*/
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    21
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3366
diff changeset
    22
/**
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3366
diff changeset
    23
 *  \file SDL_platform.h
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    24
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3366
diff changeset
    25
 *  Try to get a standard set of platform defines.
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3366
diff changeset
    26
 */
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    27
1406
39ca9a4b22f3 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1402
diff changeset
    28
#ifndef _SDL_platform_h
39ca9a4b22f3 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1402
diff changeset
    29
#define _SDL_platform_h
39ca9a4b22f3 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1402
diff changeset
    30
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    31
#if defined(_AIX)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    32
#undef __AIX__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    33
#define __AIX__     1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    34
#endif
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    35
#if defined(__BEOS__)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    36
#undef __BEOS__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    37
#define __BEOS__    1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    38
#endif
3292
245a7d79577c Fixed bug #615
Sam Lantinga <slouken@libsdl.org>
parents: 2871
diff changeset
    39
#if defined(__HAIKU__)
245a7d79577c Fixed bug #615
Sam Lantinga <slouken@libsdl.org>
parents: 2871
diff changeset
    40
#undef __HAIKU__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    41
#define __HAIKU__   1
3292
245a7d79577c Fixed bug #615
Sam Lantinga <slouken@libsdl.org>
parents: 2871
diff changeset
    42
#endif
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    43
#if defined(bsdi) || defined(__bsdi) || defined(__bsdi__)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    44
#undef __BSDI__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    45
#define __BSDI__    1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    46
#endif
1461
11134dc42da8 Updated for Dreamcast KOS June 2005 snapshot:
Sam Lantinga <slouken@libsdl.org>
parents: 1422
diff changeset
    47
#if defined(_arch_dreamcast)
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    48
#undef __DREAMCAST__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    49
#define __DREAMCAST__   1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    50
#endif
3366
8cd9ed45c020 Adapted from Debian patch: 215_kfreebsd_gnu.diff
Sam Lantinga <slouken@libsdl.org>
parents: 3319
diff changeset
    51
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    52
#undef __FREEBSD__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    53
#define __FREEBSD__ 1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    54
#endif
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    55
#if defined(hpux) || defined(__hpux) || defined(__hpux__)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    56
#undef __HPUX__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    57
#define __HPUX__    1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    58
#endif
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    59
#if defined(sgi) || defined(__sgi) || defined(__sgi__) || defined(_SGI_SOURCE)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    60
#undef __IRIX__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    61
#define __IRIX__    1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    62
#endif
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    63
#if defined(linux) || defined(__linux) || defined(__linux__)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    64
#undef __LINUX__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    65
#define __LINUX__   1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    66
#endif
4695
b7918263da92 Initial commit, adding __ANDROID__ to the platform list
Paul Hunkin <paul@bieh.net>
parents: 3697
diff changeset
    67
#if defined(ANDROID)
b7918263da92 Initial commit, adding __ANDROID__ to the platform list
Paul Hunkin <paul@bieh.net>
parents: 3697
diff changeset
    68
#undef __ANDROID__
7678
286c42d7c5ed OCD fixes: Adds a space after /* (glory to regular expressions!)
Gabriel Jacobo <gabomdq@gmail.com>
parents: 7677
diff changeset
    69
#undef __LINUX__ /* do we need to do this? */
4695
b7918263da92 Initial commit, adding __ANDROID__ to the platform list
Paul Hunkin <paul@bieh.net>
parents: 3697
diff changeset
    70
#define __ANDROID__ 1
b7918263da92 Initial commit, adding __ANDROID__ to the platform list
Paul Hunkin <paul@bieh.net>
parents: 3697
diff changeset
    71
#endif
b7918263da92 Initial commit, adding __ANDROID__ to the platform list
Paul Hunkin <paul@bieh.net>
parents: 3697
diff changeset
    72
1631
510b009a864c Fixed MacOS X and Solaris detection
Sam Lantinga <slouken@libsdl.org>
parents: 1628
diff changeset
    73
#if defined(__APPLE__)
2765
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    74
/* lets us know what version of Mac OS X we're compiling on */
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    75
#include "AvailabilityMacros.h"
4925
514f811a4887 Removed support for 10.3.9
Sam Lantinga <slouken@libsdl.org>
parents: 4696
diff changeset
    76
#include "TargetConditionals.h"
2765
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    77
#if TARGET_OS_IPHONE
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    78
/* if compiling for iPhone */
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    79
#undef __IPHONEOS__
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    80
#define __IPHONEOS__ 1
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    81
#undef __MACOSX__
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    82
#else
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    83
/* if not compiling for iPhone */
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    84
#undef __MACOSX__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    85
#define __MACOSX__  1
7507
885b4aab4190 Mac: Codify SDK and OS requirements, and clean up.
Jørgen P. Tjernø <jorgen@valvesoftware.com>
parents: 7498
diff changeset
    86
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1050
885b4aab4190 Mac: Codify SDK and OS requirements, and clean up.
Jørgen P. Tjernø <jorgen@valvesoftware.com>
parents: 7498
diff changeset
    87
# error SDL for Mac OS X only supports deploying on 10.5 and above.
885b4aab4190 Mac: Codify SDK and OS requirements, and clean up.
Jørgen P. Tjernø <jorgen@valvesoftware.com>
parents: 7498
diff changeset
    88
#endif /* MAC_OS_X_VERSION_MIN_REQUIRED < 1050 */
885b4aab4190 Mac: Codify SDK and OS requirements, and clean up.
Jørgen P. Tjernø <jorgen@valvesoftware.com>
parents: 7498
diff changeset
    89
#if MAC_OS_X_VERSION_MAX_ALLOWED < 1060
885b4aab4190 Mac: Codify SDK and OS requirements, and clean up.
Jørgen P. Tjernø <jorgen@valvesoftware.com>
parents: 7498
diff changeset
    90
# error SDL for Mac OS X must be built with a 10.6 SDK or above.
885b4aab4190 Mac: Codify SDK and OS requirements, and clean up.
Jørgen P. Tjernø <jorgen@valvesoftware.com>
parents: 7498
diff changeset
    91
#endif /* MAC_OS_X_VERSION_MAX_ALLOWED < 1060 */
2765
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    92
#endif /* TARGET_OS_IPHONE */
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    93
#endif /* defined(__APPLE__) */
f55c87ae336b Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 2735
diff changeset
    94
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    95
#if defined(__NetBSD__)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    96
#undef __NETBSD__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
    97
#define __NETBSD__  1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    98
#endif
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    99
#if defined(__OpenBSD__)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   100
#undef __OPENBSD__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
   101
#define __OPENBSD__ 1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   102
#endif
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   103
#if defined(__OS2__)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   104
#undef __OS2__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
   105
#define __OS2__     1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   106
#endif
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   107
#if defined(osf) || defined(__osf) || defined(__osf__) || defined(_OSF_SOURCE)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   108
#undef __OSF__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
   109
#define __OSF__     1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   110
#endif
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   111
#if defined(__QNXNTO__)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   112
#undef __QNXNTO__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
   113
#define __QNXNTO__  1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   114
#endif
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   115
#if defined(riscos) || defined(__riscos) || defined(__riscos__)
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   116
#undef __RISCOS__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
   117
#define __RISCOS__  1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   118
#endif
1631
510b009a864c Fixed MacOS X and Solaris detection
Sam Lantinga <slouken@libsdl.org>
parents: 1628
diff changeset
   119
#if defined(__SVR4)
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   120
#undef __SOLARIS__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
   121
#define __SOLARIS__ 1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   122
#endif
7498
bda3639deecc Fixed building with cygwin
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
   123
#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__)
7856
cb37776926ad Added __WINDOWS__ to reflect both 32 and 64-bit windows platforms
Sam Lantinga <slouken@libsdl.org>
parents: 7678
diff changeset
   124
#undef __WINDOWS__
cb37776926ad Added __WINDOWS__ to reflect both 32 and 64-bit windows platforms
Sam Lantinga <slouken@libsdl.org>
parents: 7678
diff changeset
   125
#define __WINDOWS__   1
cb37776926ad Added __WINDOWS__ to reflect both 32 and 64-bit windows platforms
Sam Lantinga <slouken@libsdl.org>
parents: 7678
diff changeset
   126
#endif
cb37776926ad Added __WINDOWS__ to reflect both 32 and 64-bit windows platforms
Sam Lantinga <slouken@libsdl.org>
parents: 7678
diff changeset
   127
#if defined(__WINDOWS__)
5086
c2539ff054c8 Fixed compiling on Windows Mobile SDK 5.0 with Visual Studio 2008
Sam Lantinga <slouken@libsdl.org>
parents: 5062
diff changeset
   128
#undef __WIN32__
7856
cb37776926ad Added __WINDOWS__ to reflect both 32 and 64-bit windows platforms
Sam Lantinga <slouken@libsdl.org>
parents: 7678
diff changeset
   129
#define __WIN32__ 1
1402
d910939febfa Use consistent identifiers for the various platforms we support.
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
   130
#endif
7009
161b7b6a5303 Add PSP support
Captain Lex <kimonline@126.com>
parents: 6885
diff changeset
   131
#if defined(__PSP__)
7012
504651b7d8df The platform define for the PSP is __PSP__
Sam Lantinga <slouken@libsdl.org>
parents: 7011
diff changeset
   132
#undef __PSP__
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 7012
diff changeset
   133
#define __PSP__ 1
7009
161b7b6a5303 Add PSP support
Captain Lex <kimonline@126.com>
parents: 6885
diff changeset
   134
#endif
3319
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   135
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   136
#include "begin_code.h"
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   137
/* Set up for C function definitions, even when using C++ */
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   138
#ifdef __cplusplus
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   139
extern "C" {
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   140
#endif
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   141
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   142
/**
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3366
diff changeset
   143
 *  \brief Gets the name of the platform.
3319
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   144
 */
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   145
extern DECLSPEC const char * SDLCALL SDL_GetPlatform (void);
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   146
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   147
/* Ends C function definitions when using C++ */
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   148
#ifdef __cplusplus
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   149
}
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   150
#endif
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   151
#include "close_code.h"
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   152
1406
39ca9a4b22f3 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1402
diff changeset
   153
#endif /* _SDL_platform_h */
3319
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   154
63d4517fc4ac Fixed bug #777
Sam Lantinga <slouken@libsdl.org>
parents: 3292
diff changeset
   155
/* vi: set ts=4 sw=4 expandtab: */