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

References APIENTRY, and TRUE.

396 {
397 #if __AIX__
398  return "AIX";
399 #elif __ANDROID__
400  return "Android";
401 #elif __BSDI__
402  return "BSDI";
403 #elif __DREAMCAST__
404  return "Dreamcast";
405 #elif __EMSCRIPTEN__
406  return "Emscripten";
407 #elif __FREEBSD__
408  return "FreeBSD";
409 #elif __HAIKU__
410  return "Haiku";
411 #elif __HPUX__
412  return "HP-UX";
413 #elif __IRIX__
414  return "Irix";
415 #elif __LINUX__
416  return "Linux";
417 #elif __MINT__
418  return "Atari MiNT";
419 #elif __MACOS__
420  return "MacOS Classic";
421 #elif __MACOSX__
422  return "Mac OS X";
423 #elif __NACL__
424  return "NaCl";
425 #elif __NETBSD__
426  return "NetBSD";
427 #elif __OPENBSD__
428  return "OpenBSD";
429 #elif __OS2__
430  return "OS/2";
431 #elif __OSF__
432  return "OSF/1";
433 #elif __QNXNTO__
434  return "QNX Neutrino";
435 #elif __RISCOS__
436  return "RISC OS";
437 #elif __SOLARIS__
438  return "Solaris";
439 #elif __WIN32__
440  return "Windows";
441 #elif __WINRT__
442  return "WinRT";
443 #elif __TVOS__
444  return "tvOS";
445 #elif __IPHONEOS__
446  return "iOS";
447 #elif __PSP__
448  return "PlayStation Portable";
449 #else
450  return "Unknown (see SDL_platform.h)";
451 #endif
452 }