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 4084 70e77cbba87c
parent 4083 a66ac59b3939
child 4085 51486c979189
Fixed warnings in NO_STDIO mode
src/main/win32/SDL_win32_main.c
--- a/src/main/win32/SDL_win32_main.c	Thu Jul 19 08:12:45 2007 +0000
+++ b/src/main/win32/SDL_win32_main.c	Fri Jul 20 02:58:28 2007 +0000
@@ -234,12 +234,6 @@
 	char **argv;
 	int argc;
 	char *cmdline;
-	DWORD pathlen;
-#ifdef _WIN32_WCE
-	wchar_t path[MAX_PATH];
-#else
-	char path[MAX_PATH];
-#endif
 #ifdef _WIN32_WCE
 	wchar_t *bufp;
 	int nLen;
@@ -248,6 +242,12 @@
 	size_t nLen;
 #endif
 #ifndef NO_STDIO_REDIRECT
+	DWORD pathlen;
+#ifdef _WIN32_WCE
+	wchar_t path[MAX_PATH];
+#else
+	char path[MAX_PATH];
+#endif
 	FILE *newfp;
 #endif