Show
Ignore:
Timestamp:
05/12/09 14:27:54 (5 years ago)
Author:
robert
Message:

Attempt to fix OSX missing _main symbol error

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgmovie/osgmovie.cpp

    r9928 r10187  
    392392#endif 
    393393 
     394#if defined(USE_SDL) && defined(__APPLE__) 
     395    // SDL under OSX causes a link error with a unresolved _main symbol 
     396    // so we have to add this dummy implementation to get round it. 
     397    main() {} 
     398#endif 
     399 
    394400int main(int argc, char** argv) 
    395401{