include/SDL_stdinc.h
changeset 7008 e0f05e041a72
parent 7006 ffcf28627e1c
child 7011 82bbfbbc720e
     1.1 --- a/include/SDL_stdinc.h	Fri Mar 15 11:59:16 2013 -0700
     1.2 +++ b/include/SDL_stdinc.h	Sat Mar 16 11:00:04 2013 -0700
     1.3 @@ -517,16 +517,16 @@
     1.4  
     1.5  extern DECLSPEC char *SDLCALL SDL_strrchr(const char *str, int c);
     1.6  #ifdef HAVE_STRRCHR
     1.7 -SDL_FORCE_INLINE char *SDL_strrchr_inline(const char *str, int c) { return strrchr(str, c); }
     1.8 +SDL_FORCE_INLINE char *SDL_strrchr_inline(const char *str, int c) { return (char*)strrchr(str, c); }
     1.9  #define SDL_strrchr SDL_strrchr_inline
    1.10  #elif defined(HAVE_RINDEX)  /* !!! FIXME: is there anywhere that has this but not strrchr? */
    1.11 -SDL_FORCE_INLINE char *SDL_strrchr_inline(const char *str, int c) { return rindex(str, c); }
    1.12 +SDL_FORCE_INLINE char *SDL_strrchr_inline(const char *str, int c) { return (char*)rindex(str, c); }
    1.13  #define SDL_strrchr SDL_strrchr_inline
    1.14  #endif
    1.15  
    1.16  extern DECLSPEC char *SDLCALL SDL_strstr(const char *haystack, const char *needle);
    1.17  #ifdef HAVE_STRSTR
    1.18 -SDL_FORCE_INLINE char *SDL_strstr_inline(const char *haystack, const char *needle) { return strstr(haystack, needle); }
    1.19 +SDL_FORCE_INLINE char *SDL_strstr_inline(const char *haystack, const char *needle) { return (char*)strstr(haystack, needle); }
    1.20  #define SDL_strstr SDL_strstr_inline
    1.21  #endif
    1.22