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 __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 142 of file SDL_platform.h.

◆ __WINDOWS__

#define __WINDOWS__   1

Definition at line 136 of file SDL_platform.h.

Function Documentation

◆ SDL_GetPlatform()

const char* SDL_GetPlatform ( void  )

Gets the name of the platform.

Definition at line 398 of file SDL.c.

References APIENTRY, and TRUE.

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