src/video/uikit/SDL_uikitview.m
changeset 6044 35448a5ea044
parent 6010 508aa078acc0
child 6054 effedf4d675c
     1.1 --- a/src/video/uikit/SDL_uikitview.m	Mon Oct 31 03:06:32 2011 -0400
     1.2 +++ b/src/video/uikit/SDL_uikitview.m	Mon Oct 31 05:56:58 2011 -0400
     1.3 @@ -18,6 +18,9 @@
     1.4       misrepresented as being the original software.
     1.5    3. This notice may not be removed or altered from any source distribution.
     1.6  */
     1.7 +#include "SDL_config.h"
     1.8 +
     1.9 +#if SDL_VIDEO_DRIVER_UIKIT
    1.10  
    1.11  #import "SDL_uikitview.h"
    1.12  
    1.13 @@ -28,6 +31,7 @@
    1.14  #if SDL_IPHONE_KEYBOARD
    1.15  #import "keyinfotable.h"
    1.16  #import "SDL_uikitappdelegate.h"
    1.17 +#import "SDL_uikitkeyboard.h"
    1.18  #import "SDL_uikitwindow.h"
    1.19  #endif
    1.20  
    1.21 @@ -311,7 +315,7 @@
    1.22  /* iPhone keyboard addition functions */
    1.23  #if SDL_IPHONE_KEYBOARD
    1.24  
    1.25 -SDL_uikitview * getWindowView(SDL_Window * window)
    1.26 +static SDL_uikitview * getWindowView(SDL_Window * window)
    1.27  {
    1.28      if (window == NULL) {
    1.29          SDL_SetError("Window does not exist");
    1.30 @@ -405,4 +409,6 @@
    1.31  
    1.32  #endif /* SDL_IPHONE_KEYBOARD */
    1.33  
    1.34 +#endif /* SDL_VIDEO_DRIVER_UIKIT */
    1.35 +
    1.36  /* vi: set ts=4 sw=4 expandtab: */