Ignore:
Timestamp:
Jan 25, 2013, 1:35:24 PM (9 years ago)
Author:
sam
Message:

build: provide weak symbols for lol_sdl_main on Visual Studio.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/platform/sdl/sdlapp.cpp

    r2273 r2274  
    4444#if defined main
    4545#   if defined _MSC_VER
    46 #       pragma comment(linker, "/alternatename:_lol_sdl_main=_lol_sdl_main_msvc")
     46int lol_sdl_main();
     47int lol_sdl_main(int argc, char **argv);
     48int lol_sdl_main(int argc, char **argv, char **envp);
    4749#       define WRAPPER lol_sdl_main_msvc
    4850#   else
     
    5456
    5557/* One of these wrappers will be overridden by the user's version */
     58
    5659int WRAPPER() { return 0; }
    5760int WRAPPER(int argc, char **argv) { return 0; }
     
    6063int main(int argc, char *argv[])
    6164{
    62 printf("LOL OK\n");
    6365    int ret = 0;
    6466    ret += lol_sdl_main();
Note: See TracChangeset for help on using the changeset viewer.