src/video/x11/SDL_x11dyn.c
changeset 2325 c7bcf84ba1b9
parent 2120 2c835d58faad
child 2763 6fc50bdd88c0
     1.1 --- a/src/video/x11/SDL_x11dyn.c	Fri Mar 07 17:20:37 2008 +0000
     1.2 +++ b/src/video/x11/SDL_x11dyn.c	Fri Mar 07 20:54:11 2008 +0000
     1.3 @@ -98,6 +98,7 @@
     1.4  /* Annoying varargs entry point... */
     1.5  #ifdef X_HAVE_UTF8_STRING
     1.6  XIC(*pXCreateIC) (XIM,...) = NULL;
     1.7 +char *(*pXGetICValues) (XIC, ...) = NULL;
     1.8  #endif
     1.9  
    1.10  /* These SDL_X11_HAVE_* flags are here whether you have dynamic X11 or not. */
    1.11 @@ -128,6 +129,7 @@
    1.12  
    1.13  #ifdef X_HAVE_UTF8_STRING
    1.14              pXCreateIC = NULL;
    1.15 +            pXGetICValues = NULL;
    1.16  #endif
    1.17  
    1.18              for (i = 0; i < SDL_TABLESIZE(x11libs); i++) {
    1.19 @@ -165,6 +167,8 @@
    1.20  
    1.21  #ifdef X_HAVE_UTF8_STRING
    1.22          X11_GetSym("XCreateIC", &SDL_X11_HAVE_UTF8, (void **) &pXCreateIC);
    1.23 +        X11_GetSym("XGetICValues", &SDL_X11_HAVE_UTF8,
    1.24 +                   (void **) &pXGetICValues);
    1.25  #endif
    1.26  
    1.27          if (SDL_X11_HAVE_BASEXLIB) {
    1.28 @@ -179,6 +183,7 @@
    1.29  #else
    1.30  #ifdef X_HAVE_UTF8_STRING
    1.31      pXCreateIC = XCreateIC;
    1.32 +    pXGetICValues = XGetICValues;
    1.33  #endif
    1.34  #endif
    1.35