winmain: Patched to compile on C89 compilers.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 29 Oct 2018 20:18:50 -0400
changeset 1237086e097182d16
parent 12369 68c87b40b434
child 12371 41b93d8303d6
winmain: Patched to compile on C89 compilers.
src/main/windows/SDL_windows_main.c
     1.1 --- a/src/main/windows/SDL_windows_main.c	Mon Oct 29 20:00:03 2018 -0400
     1.2 +++ b/src/main/windows/SDL_windows_main.c	Mon Oct 29 20:18:50 2018 -0400
     1.3 @@ -145,8 +145,9 @@
     1.4          cmdalloc = rc + (sizeof (char *) * argc_guess);
     1.5          argv = (char **) VirtualAlloc(NULL, cmdalloc, MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE);
     1.6          if (argv) {
     1.7 +            int rc2;
     1.8              cmdline = (char *) (argv + argc_guess);
     1.9 -            const int rc2 = WideCharToMultiByte(CP_UTF8, 0, text, -1, cmdline, rc, NULL, NULL);
    1.10 +            rc2 = WideCharToMultiByte(CP_UTF8, 0, text, -1, cmdline, rc, NULL, NULL);
    1.11              SDL_assert(rc2 == rc);
    1.12          }
    1.13      }