Changeset 2273 for trunk/src/core.h


Ignore:
Timestamp:
Jan 25, 2013, 12:38:58 PM (10 years ago)
Author:
sam
Message:

build: use our own main() wrapper in addition to SDL's, and only
in that case. Currently only works with GCC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core.h

    r2265 r2273  
    6969#endif
    7070
    71 /* If using SDL on Windows or OS X, let it override main() */
    72 #if defined USE_SDL && (defined _WIN32 || defined __APPLE__)
     71/* If using SDL, let it override main() but immediately replace
     72 * the override with ours. */
     73#if defined USE_SDL
    7374#   include <SDL_main.h>
     75#   if defined main && !LOL_DONT_DIVERT_MAIN
     76#       undef main
     77#       define main lol_sdl_main
     78#   endif
    7479#endif
    7580
Note: See TracChangeset for help on using the changeset viewer.