Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 11, 2007, 10:35:49 AM (17 years ago)
Author:
nicolasc
Message:

reset all files to original state
included all win32/macosx ifdefs…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/Tutorial/src/main.cpp

    r30 r35  
    5858};
    5959
    60 //#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
    61 //#define WIN32_LEAN_AND_MEAN
    62 //#include "windows.h"
     60#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
     61#define WIN32_LEAN_AND_MEAN
     62#include "windows.h"
    6363
    64 //INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
    65 //#else
     64INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT )
     65#else
    6666int main(int argc, char **argv)
    67 //#endif
     67#endif
    6868{
    6969    // Create application object
     
    7373        app.go();
    7474    } catch( Exception& e ) {
    75 //#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
    76 //        MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
    77 //#else
     75#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
     76        MessageBox( NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
     77#else
    7878        fprintf(stderr, "An exception has occurred: %s\n",
    7979                e.getFullDescription().c_str());
    80 //#endif
     80#endif
    8181    }
    8282
Note: See TracChangeset for help on using the changeset viewer.