|
From: <mac...@us...> - 2006-05-17 23:26:08
|
Revision: 21 Author: machaira Date: 2006-05-17 16:26:01 -0700 (Wed, 17 May 2006) ViewCVS: http://svn.sourceforge.net/perceptioncrash/?rev=21&view=rev Log Message: ----------- Modified Paths: -------------- trunk/perceptioncrash/src/main.cpp Modified: trunk/perceptioncrash/src/main.cpp =================================================================== --- trunk/perceptioncrash/src/main.cpp 2006-05-17 23:23:03 UTC (rev 20) +++ trunk/perceptioncrash/src/main.cpp 2006-05-17 23:26:01 UTC (rev 21) @@ -5,7 +5,14 @@ #include <Ogre.h> #include <OgreErrorDialog.h> -int main(int argc, char **argv) { +#if OGRE_PLATFORM==OGRE_PLATFORM_WIN32 +#define WIN32_LEAN_AND_MEAN +#include "windows.h" +INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) +#else +int main(int argc, char **argv) +#endif +{ Game game; try { game.run(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |