SDL 2.0
SDL_platform.h File Reference
#include "begin_code.h"
#include "close_code.h"
+ Include dependency graph for SDL_platform.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define HAVE_WINAPIFAMILY_H   0
 
#define WINAPI_FAMILY_WINRT   0
 
#define __WINDOWS__   1
 
#define __WIN32__   1
 

Functions

const char * SDL_GetPlatform (void)
 Gets the name of the platform. More...
 

Detailed Description

Try to get a standard set of platform defines.

Definition in file SDL_platform.h.

Macro Definition Documentation

◆ __WIN32__

#define __WIN32__   1

Definition at line 155 of file SDL_platform.h.

◆ __WINDOWS__

#define __WINDOWS__   1

Definition at line 149 of file SDL_platform.h.

◆ HAVE_WINAPIFAMILY_H

#define HAVE_WINAPIFAMILY_H   0

Definition at line 134 of file SDL_platform.h.

◆ WINAPI_FAMILY_WINRT

#define WINAPI_FAMILY_WINRT   0

Definition at line 141 of file SDL_platform.h.

Function Documentation

◆ SDL_GetPlatform()

const char * SDL_GetPlatform ( void  )

Gets the name of the platform.

Definition at line 423 of file SDL.c.

424{
425#if __AIX__
426 return "AIX";
427#elif __ANDROID__
428 return "Android";
429#elif __BSDI__
430 return "BSDI";
431#elif __DREAMCAST__
432 return "Dreamcast";
433#elif __EMSCRIPTEN__
434 return "Emscripten";
435#elif __FREEBSD__
436 return "FreeBSD";
437#elif __HAIKU__
438 return "Haiku";
439#elif __HPUX__
440 return "HP-UX";
441#elif __IRIX__
442 return "Irix";
443#elif __LINUX__
444 return "Linux";
445#elif __MINT__
446 return "Atari MiNT";
447#elif __MACOS__
448 return "MacOS Classic";
449#elif __MACOSX__
450 return "Mac OS X";
451#elif __NACL__
452 return "NaCl";
453#elif __NETBSD__
454 return "NetBSD";
455#elif __OPENBSD__
456 return "OpenBSD";
457#elif __OS2__
458 return "OS/2";
459#elif __OSF__
460 return "OSF/1";
461#elif __QNXNTO__
462 return "QNX Neutrino";
463#elif __RISCOS__
464 return "RISC OS";
465#elif __SOLARIS__
466 return "Solaris";
467#elif __WIN32__
468 return "Windows";
469#elif __WINRT__
470 return "WinRT";
471#elif __TVOS__
472 return "tvOS";
473#elif __IPHONEOS__
474 return "iOS";
475#elif __PSP__
476 return "PlayStation Portable";
477#else
478 return "Unknown (see SDL_platform.h)";
479#endif
480}