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

460 {
461 #if __AIX__
462  return "AIX";
463 #elif __ANDROID__
464  return "Android";
465 #elif __BSDI__
466  return "BSDI";
467 #elif __DREAMCAST__
468  return "Dreamcast";
469 #elif __EMSCRIPTEN__
470  return "Emscripten";
471 #elif __FREEBSD__
472  return "FreeBSD";
473 #elif __HAIKU__
474  return "Haiku";
475 #elif __HPUX__
476  return "HP-UX";
477 #elif __IRIX__
478  return "Irix";
479 #elif __LINUX__
480  return "Linux";
481 #elif __MINT__
482  return "Atari MiNT";
483 #elif __MACOS__
484  return "MacOS Classic";
485 #elif __MACOSX__
486  return "Mac OS X";
487 #elif __NACL__
488  return "NaCl";
489 #elif __NETBSD__
490  return "NetBSD";
491 #elif __OPENBSD__
492  return "OpenBSD";
493 #elif __OS2__
494  return "OS/2";
495 #elif __OSF__
496  return "OSF/1";
497 #elif __QNXNTO__
498  return "QNX Neutrino";
499 #elif __RISCOS__
500  return "RISC OS";
501 #elif __SOLARIS__
502  return "Solaris";
503 #elif __WIN32__
504  return "Windows";
505 #elif __WINRT__
506  return "WinRT";
507 #elif __TVOS__
508  return "tvOS";
509 #elif __IPHONEOS__
510  return "iOS";
511 #elif __PSP__
512  return "PlayStation Portable";
513 #else
514  return "Unknown (see SDL_platform.h)";
515 #endif
516 }