Edit

kc3-lang/SDL/src/main/dummy

Branch :

  • Show log

    Commit

  • Author : David Ludwig
    Date : 2014-12-03 10:55:23
    Hash : 70438be2
    Message : WinRT: fixed bug whereby SDL would override an app's default orientation WinRT apps can set a default, preferred orientation via a .appxmanifest file. SDL was overriding this on app startup, and making the app use all possible orientations (landscape and portrait). Thanks to Eric Wing for the heads up on this!

  • SDL_dummy_main.c
  • /*
        SDL_dummy_main.c, placed in the public domain by Sam Lantinga  3/13/14
    */
    #include "../../SDL_internal.h"
    
    /* Include the SDL main definition header */
    #include "SDL_main.h"
    
    #ifdef main
    #undef main
    int
    main(int argc, char *argv[])
    {
        return (SDL_main(argc, argv));
    }
    #else
    /* Nothing to do on this platform */
    int
    SDL_main_stub_symbol(void);
    
    int
    SDL_main_stub_symbol(void)
    {
        return 0;
    }
    #endif
    
    /* vi: set ts=4 sw=4 expandtab: */