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 476 of file SDL.c.

477 {
478 #if __AIX__
479  return "AIX";
480 #elif __ANDROID__
481  return "Android";
482 #elif __BSDI__
483  return "BSDI";
484 #elif __DREAMCAST__
485  return "Dreamcast";
486 #elif __EMSCRIPTEN__
487  return "Emscripten";
488 #elif __FREEBSD__
489  return "FreeBSD";
490 #elif __HAIKU__
491  return "Haiku";
492 #elif __HPUX__
493  return "HP-UX";
494 #elif __IRIX__
495  return "Irix";
496 #elif __LINUX__
497  return "Linux";
498 #elif __MINT__
499  return "Atari MiNT";
500 #elif __MACOS__
501  return "MacOS Classic";
502 #elif __MACOSX__
503  return "Mac OS X";
504 #elif __NACL__
505  return "NaCl";
506 #elif __NETBSD__
507  return "NetBSD";
508 #elif __OPENBSD__
509  return "OpenBSD";
510 #elif __OS2__
511  return "OS/2";
512 #elif __OSF__
513  return "OSF/1";
514 #elif __QNXNTO__
515  return "QNX Neutrino";
516 #elif __RISCOS__
517  return "RISC OS";
518 #elif __SOLARIS__
519  return "Solaris";
520 #elif __WIN32__
521  return "Windows";
522 #elif __WINRT__
523  return "WinRT";
524 #elif __TVOS__
525  return "tvOS";
526 #elif __IPHONEOS__
527  return "iOS";
528 #elif __PSP__
529  return "PlayStation Portable";
530 #else
531  return "Unknown (see SDL_platform.h)";
532 #endif
533 }