Fixed declaration of SDL_main_func for C++
authorSam Lantinga <slouken@libsdl.org>
Tue, 19 Mar 2019 08:29:34 -0700
changeset 12661afa33c19cc67
parent 12660 5742240661e0
child 12662 bc56ab68fcc4
Fixed declaration of SDL_main_func for C++
include/SDL_main.h
     1.1 --- a/include/SDL_main.h	Tue Mar 19 07:53:39 2019 -0700
     1.2 +++ b/include/SDL_main.h	Tue Mar 19 08:29:34 2019 -0700
     1.3 @@ -118,7 +118,10 @@
     1.4  /**
     1.5   *  The prototype for the application's main() function
     1.6   */
     1.7 -typedef C_LINKAGE SDLMAIN_DECLSPEC int (*SDL_main_func)(int argc, char *argv[]);
     1.8 +#ifdef __cplusplus
     1.9 +extern "C"
    1.10 +#endif
    1.11 +typedef int (*SDL_main_func)(int argc, char *argv[]);
    1.12  extern C_LINKAGE SDLMAIN_DECLSPEC int SDL_main(int argc, char *argv[]);
    1.13  
    1.14