Fixed compile warning
authorSam Lantinga <slouken@libsdl.org>
Sun, 10 Sep 2017 10:43:04 -0700
changeset 11489438be648de4c
parent 11488 998f992b03ed
child 11490 c7cc4401ab96
Fixed compile warning
src/stdlib/SDL_malloc.c
     1.1 --- a/src/stdlib/SDL_malloc.c	Sun Sep 10 10:30:25 2017 -0700
     1.2 +++ b/src/stdlib/SDL_malloc.c	Sun Sep 10 10:43:04 2017 -0700
     1.3 @@ -2946,13 +2946,17 @@
     1.4  internal_malloc_stats(mstate m)
     1.5  {
     1.6      if (!PREACTION(m)) {
     1.7 +#ifndef LACKS_STDIO_H
     1.8          size_t maxfp = 0;
     1.9 +#endif
    1.10          size_t fp = 0;
    1.11          size_t used = 0;
    1.12          check_malloc_state(m);
    1.13          if (is_initialized(m)) {
    1.14              msegmentptr s = &m->seg;
    1.15 +#ifndef LACKS_STDIO_H
    1.16              maxfp = m->max_footprint;
    1.17 +#endif
    1.18              fp = m->footprint;
    1.19              used = fp - (m->topsize + TOP_FOOT_SIZE);
    1.20