Backed out change 92dc590a7116 which was: Fixed bug 3320 - SDL_windows_main.c defines both console application entry points
authorSam Lantinga <slouken@libsdl.org>
Wed, 12 Oct 2016 19:50:16 -0700
changeset 105221cb2f14d0701
parent 10521 caea79aa9035
child 10523 a45d3b96cf85
Backed out change 92dc590a7116 which was: Fixed bug 3320 - SDL_windows_main.c defines both console application entry points
With that change only the wmain() entry point was defined, and applications that linked with main() would no longer build.
src/main/windows/SDL_windows_main.c
     1.1 --- a/src/main/windows/SDL_windows_main.c	Wed Oct 12 18:57:12 2016 -0700
     1.2 +++ b/src/main/windows/SDL_windows_main.c	Wed Oct 12 19:50:16 2016 -0700
     1.3 @@ -110,10 +110,9 @@
     1.4  
     1.5  #if defined(_MSC_VER)
     1.6  /* The VC++ compiler needs main/wmain defined */
     1.7 +# define console_ansi_main main
     1.8  # if UNICODE
     1.9  #  define console_wmain wmain
    1.10 -# else
    1.11 -#  define console_ansi_main main
    1.12  # endif
    1.13  #endif
    1.14