src/stdlib/SDL_string.c
changeset 11610 6dea196ecbcb
parent 11451 b96f291a772e
child 11811 5d94cb6b24d3
     1.1 --- a/src/stdlib/SDL_string.c	Thu Oct 12 13:28:48 2017 -0700
     1.2 +++ b/src/stdlib/SDL_string.c	Thu Oct 12 13:44:28 2017 -0700
     1.3 @@ -561,16 +561,12 @@
     1.4  char *
     1.5  SDL_strdup(const char *string)
     1.6  {
     1.7 -#if defined(HAVE_STRDUP)
     1.8 -    return strdup(string);
     1.9 -#else
    1.10      size_t len = SDL_strlen(string) + 1;
    1.11      char *newstr = SDL_malloc(len);
    1.12      if (newstr) {
    1.13          SDL_strlcpy(newstr, string, len);
    1.14      }
    1.15      return newstr;
    1.16 -#endif /* HAVE_STRDUP */
    1.17  }
    1.18  
    1.19  char *