Allow SDL_uikitkeyboard.h to be included in C++ applications
authorSam Lantinga
Fri, 25 May 2012 18:21:10 -0400
changeset 630953a0e9f5db8d
parent 6308 263e2c049c22
child 6310 f830e73e2acf
Allow SDL_uikitkeyboard.h to be included in C++ applications
src/video/uikit/SDL_uikitkeyboard.h
     1.1 --- a/src/video/uikit/SDL_uikitkeyboard.h	Fri May 25 15:35:41 2012 -0300
     1.2 +++ b/src/video/uikit/SDL_uikitkeyboard.h	Fri May 25 18:21:10 2012 -0400
     1.3 @@ -22,11 +22,25 @@
     1.4  #ifndef sdl_uikitkeyboard_h
     1.5  #define sdl_uikitkeyboard_h
     1.6  
     1.7 +/* Set up for C function definitions, even when using C++ */
     1.8 +#ifdef __cplusplus
     1.9 +/* *INDENT-OFF* */
    1.10 +extern "C" {
    1.11 +/* *INDENT-ON* */
    1.12 +#endif
    1.13 +
    1.14  extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardShow(SDL_Window * window);
    1.15  extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardHide(SDL_Window * window);
    1.16  extern DECLSPEC SDL_bool SDLCALL SDL_iPhoneKeyboardIsShown(SDL_Window * window);
    1.17  extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardToggle(SDL_Window * window);
    1.18  
    1.19 +/* Ends C function definitions when using C++ */
    1.20 +#ifdef __cplusplus
    1.21 +/* *INDENT-OFF* */
    1.22 +}
    1.23 +/* *INDENT-ON* */
    1.24  #endif
    1.25  
    1.26 +#endif /* sdl_uikitkeyboard_h */
    1.27 +
    1.28  /* vi: set ts=4 sw=4 expandtab: */