Mercurial > sdl-ios-xcode
diff include/SDL_platform.h @ 3319:63d4517fc4ac
Fixed bug #777
Implemented SDL_GetPlatform()
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 26 Sep 2009 10:32:14 +0000 |
parents | 245a7d79577c |
children | 8cd9ed45c020 |
line wrap: on
line diff
--- a/include/SDL_platform.h Sat Sep 26 10:22:35 2009 +0000 +++ b/include/SDL_platform.h Sat Sep 26 10:32:14 2009 +0000 @@ -123,4 +123,29 @@ #define __NINTENDODS__ 1 #endif + +#include "begin_code.h" +/* Set up for C function definitions, even when using C++ */ +#ifdef __cplusplus +/* *INDENT-OFF* */ +extern "C" { +/* *INDENT-ON* */ +#endif + +/** + * \fn const char *SDL_GetPlatform(void) + * \brief Gets the name of the platform. + */ +extern DECLSPEC const char * SDLCALL SDL_GetPlatform (void); + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +/* *INDENT-OFF* */ +} +/* *INDENT-ON* */ +#endif +#include "close_code.h" + #endif /* _SDL_platform_h */ + +/* vi: set ts=4 sw=4 expandtab: */