make SDL_strtoll and SDL_strtoull exports not be missing in win32 dlls. SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Sun, 01 Jul 2018 09:27:03 +0300
branchSDL-1.2
changeset 1204969d8281bdd66
parent 12048 eb70ab731d29
child 12050 f68904a749c9
make SDL_strtoll and SDL_strtoull exports not be missing in win32 dlls.
src/stdlib/SDL_string.c
     1.1 --- a/src/stdlib/SDL_string.c	Sat Jun 30 23:10:01 2018 +0300
     1.2 +++ b/src/stdlib/SDL_string.c	Sun Jul 01 09:27:03 2018 +0300
     1.3 @@ -623,6 +623,15 @@
     1.4      }
     1.5      return value;
     1.6  }
     1.7 +#elif defined(__WIN32__) /* so that the export won't be missing */
     1.8 +#undef SDL_strtoll
     1.9 +DECLSPEC Sint64 SDLCALL SDL_strtoll(const char *string, char **endp, int base) {
    1.10 +    #ifdef HAVE__STRTOI64
    1.11 +    return _strtoi64 (string, endp, base);
    1.12 +    #else
    1.13 +    return strtoll (string, endp, base);
    1.14 +    #endif
    1.15 +}
    1.16  #endif
    1.17  
    1.18  #if !defined(HAVE_STRTOULL) && !defined(HAVE__STRTOUI64)
    1.19 @@ -645,6 +654,15 @@
    1.20      }
    1.21      return value;
    1.22  }
    1.23 +#elif defined(__WIN32__) /* so that the export won't be missing */
    1.24 +#undef SDL_strtoull
    1.25 +DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *string, char **endp, int base) {
    1.26 +    #ifdef HAVE__STRTOUI64
    1.27 +    return _strtoui64(string, endp, base);
    1.28 +    #else
    1.29 +    return strtoull(string, endp, base);
    1.30 +    #endif
    1.31 +}
    1.32  #endif
    1.33  
    1.34  #endif /* SDL_HAS_64BIT_TYPE */