We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 462

Summary: A Patch to kill NO_STDIO_REDIRECT warnings in SDL_win32_main.c
Product: SDL Reporter: Alam Arias <Alam.GBC>
Component: mainAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: trivial    
Priority: P2    
Version: HG 1.2   
Hardware: x86   
OS: Windows (All)   

Description Alam Arias 2007-07-20 04:41:11 UTC
Index: SDL-1.2/src/main/win32/SDL_win32_main.c
===================================================================
--- SDL-1.2/src/main/win32/SDL_win32_main.c	(revision 3329)
+++ SDL-1.2/src/main/win32/SDL_win32_main.c	(working copy)
@@ -234,10 +234,12 @@
 	char **argv;
 	int argc;
 	char *cmdline;
+#ifndef NO_STDIO_REDIRECT
 	DWORD pathlen;
+#endif
 #ifdef _WIN32_WCE
 	wchar_t path[MAX_PATH];
-#else
+#elif !defined(NO_STDIO_REDIRECT)
 	char path[MAX_PATH];
 #endif
 #ifdef _WIN32_WCE
Comment 1 Sam Lantinga 2007-07-20 05:05:19 UTC
These are already fixed in the SDL 1.2.12 release, but thanks!