Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Allow SDL_uikitkeyboard.h to be included in C++ applications
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 25, 2012
1 parent 19f2068 commit 4668631
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/video/uikit/SDL_uikitkeyboard.h
Expand Up @@ -22,11 +22,25 @@
#ifndef sdl_uikitkeyboard_h
#define sdl_uikitkeyboard_h

/* Set up for C function definitions, even when using C++ */
#ifdef __cplusplus
/* *INDENT-OFF* */
extern "C" {
/* *INDENT-ON* */
#endif

extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardShow(SDL_Window * window);
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardHide(SDL_Window * window);
extern DECLSPEC SDL_bool SDLCALL SDL_iPhoneKeyboardIsShown(SDL_Window * window);
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardToggle(SDL_Window * window);

/* Ends C function definitions when using C++ */
#ifdef __cplusplus
/* *INDENT-OFF* */
}
/* *INDENT-ON* */
#endif

#endif /* sdl_uikitkeyboard_h */

/* vi: set ts=4 sw=4 expandtab: */

0 comments on commit 4668631

Please sign in to comment.