Fixed warnings in NO_STDIO mode SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Fri, 20 Jul 2007 02:58:28 +0000
branchSDL-1.2
changeset 408470e77cbba87c
parent 4083 a66ac59b3939
child 4085 51486c979189
Fixed warnings in NO_STDIO mode
src/main/win32/SDL_win32_main.c
     1.1 --- a/src/main/win32/SDL_win32_main.c	Thu Jul 19 08:12:45 2007 +0000
     1.2 +++ b/src/main/win32/SDL_win32_main.c	Fri Jul 20 02:58:28 2007 +0000
     1.3 @@ -234,12 +234,6 @@
     1.4  	char **argv;
     1.5  	int argc;
     1.6  	char *cmdline;
     1.7 -	DWORD pathlen;
     1.8 -#ifdef _WIN32_WCE
     1.9 -	wchar_t path[MAX_PATH];
    1.10 -#else
    1.11 -	char path[MAX_PATH];
    1.12 -#endif
    1.13  #ifdef _WIN32_WCE
    1.14  	wchar_t *bufp;
    1.15  	int nLen;
    1.16 @@ -248,6 +242,12 @@
    1.17  	size_t nLen;
    1.18  #endif
    1.19  #ifndef NO_STDIO_REDIRECT
    1.20 +	DWORD pathlen;
    1.21 +#ifdef _WIN32_WCE
    1.22 +	wchar_t path[MAX_PATH];
    1.23 +#else
    1.24 +	char path[MAX_PATH];
    1.25 +#endif
    1.26  	FILE *newfp;
    1.27  #endif
    1.28