Skip to content

Commit

Permalink
Fixed declaration of SDL_main_func for C++
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Mar 19, 2019
1 parent 4d8ac6b commit 8177388
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/SDL_main.h
Expand Up @@ -118,7 +118,10 @@
/**
* The prototype for the application's main() function
*/
typedef C_LINKAGE SDLMAIN_DECLSPEC int (*SDL_main_func)(int argc, char *argv[]);
#ifdef __cplusplus
extern "C"
#endif
typedef int (*SDL_main_func)(int argc, char *argv[]);
extern C_LINKAGE SDLMAIN_DECLSPEC int SDL_main(int argc, char *argv[]);


Expand Down

0 comments on commit 8177388

Please sign in to comment.