include/SDL_stdinc.h
changeset 7008 e0f05e041a72
parent 7006 ffcf28627e1c
child 7011 82bbfbbc720e
equal deleted inserted replaced
7007:2381f4d531d1 7008:e0f05e041a72
   515 #define SDL_strchr SDL_strchr_inline
   515 #define SDL_strchr SDL_strchr_inline
   516 #endif
   516 #endif
   517 
   517 
   518 extern DECLSPEC char *SDLCALL SDL_strrchr(const char *str, int c);
   518 extern DECLSPEC char *SDLCALL SDL_strrchr(const char *str, int c);
   519 #ifdef HAVE_STRRCHR
   519 #ifdef HAVE_STRRCHR
   520 SDL_FORCE_INLINE char *SDL_strrchr_inline(const char *str, int c) { return strrchr(str, c); }
   520 SDL_FORCE_INLINE char *SDL_strrchr_inline(const char *str, int c) { return (char*)strrchr(str, c); }
   521 #define SDL_strrchr SDL_strrchr_inline
   521 #define SDL_strrchr SDL_strrchr_inline
   522 #elif defined(HAVE_RINDEX)  /* !!! FIXME: is there anywhere that has this but not strrchr? */
   522 #elif defined(HAVE_RINDEX)  /* !!! FIXME: is there anywhere that has this but not strrchr? */
   523 SDL_FORCE_INLINE char *SDL_strrchr_inline(const char *str, int c) { return rindex(str, c); }
   523 SDL_FORCE_INLINE char *SDL_strrchr_inline(const char *str, int c) { return (char*)rindex(str, c); }
   524 #define SDL_strrchr SDL_strrchr_inline
   524 #define SDL_strrchr SDL_strrchr_inline
   525 #endif
   525 #endif
   526 
   526 
   527 extern DECLSPEC char *SDLCALL SDL_strstr(const char *haystack, const char *needle);
   527 extern DECLSPEC char *SDLCALL SDL_strstr(const char *haystack, const char *needle);
   528 #ifdef HAVE_STRSTR
   528 #ifdef HAVE_STRSTR
   529 SDL_FORCE_INLINE char *SDL_strstr_inline(const char *haystack, const char *needle) { return strstr(haystack, needle); }
   529 SDL_FORCE_INLINE char *SDL_strstr_inline(const char *haystack, const char *needle) { return (char*)strstr(haystack, needle); }
   530 #define SDL_strstr SDL_strstr_inline
   530 #define SDL_strstr SDL_strstr_inline
   531 #endif
   531 #endif
   532 
   532 
   533 extern DECLSPEC char *SDLCALL SDL_ltoa(long value, char *str, int radix);
   533 extern DECLSPEC char *SDLCALL SDL_ltoa(long value, char *str, int radix);
   534 #ifdef HAVE__LTOA
   534 #ifdef HAVE__LTOA