[Scummvm-cvs-logs] SF.net SVN: scummvm: [21555] residual/trunk/main.cpp

kirben at users.sourceforge.net kirben at users.sourceforge.net
Sun Apr 2 06:37:00 CEST 2006


Revision: 21555
Author:   kirben
Date:     2006-04-02 06:36:03 -0700 (Sun, 02 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=21555&view=rev

Log Message:
-----------
Fix command line problems in mingw build

Modified Paths:
--------------
    residual/trunk/main.cpp
Modified: residual/trunk/main.cpp
===================================================================
--- residual/trunk/main.cpp	2006-04-02 13:33:36 UTC (rev 21554)
+++ residual/trunk/main.cpp	2006-04-02 13:36:03 UTC (rev 21555)
@@ -39,9 +39,9 @@
 bool ZBUFFER_GLOBAL, SHOWFPS_GLOBAL, TINYGL_GLOBAL;
 enDebugLevels debugLevel = DEBUG_NONE;
 
-#ifdef __MINGW32__
-int PASCAL WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/,  LPSTR /*lpCmdLine*/, int /*iShowCmd*/) {
-	return main(0, NULL);
+#if defined (WIN32)
+int WinMain(HINSTANCE /*hInst*/, HINSTANCE /*hPrevInst*/,  LPSTR /*lpCmdLine*/, int /*iShowCmd*/) {
+    return main(__argc, __argv);
 }
 #endif
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the Scummvm-git-logs mailing list