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)
 

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

◆ __WINDOWS__

#define __WINDOWS__   1

Definition at line 183 of file SDL_platform.h.

◆ HAVE_WINAPIFAMILY_H

#define HAVE_WINAPIFAMILY_H   0

Definition at line 159 of file SDL_platform.h.

◆ WINAPI_FAMILY_WINRT

#define WINAPI_FAMILY_WINRT   0

Definition at line 166 of file SDL_platform.h.

Function Documentation

◆ SDL_GetPlatform()

const char * SDL_GetPlatform ( void  )

Get the name of the platform.

Here are the names returned for some (but not all) supported platforms:

  • "Windows"
  • "Mac OS X"
  • "Linux"
  • "iOS"
  • "Android"
Returns
the name of the platform. If the correct platform name is not available, returns a string beginning with the text "Unknown".
Since
This function is available since SDL 2.0.0.