SDL_main.h 856 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _SDL_main_h
  2. #define _SDL_main_h
  3. #include "SDL_stdinc.h"
  4. #ifndef SDL_MAIN_HANDLED
  5. #if defined(__WIN32__)
  6. #define SDL_MAIN_AVAILABLE
  7. #elif defined(__IPHONEOS__)
  8. #define SDL_MAIN_NEEDED
  9. #elif defined(__ANDROID__)
  10. #define SDL_MAIN_NEEDED
  11. #endif
  12. #endif
  13. #ifdef __cplusplus
  14. #define C_LINKAGE "C"
  15. #else
  16. #define C_LINKAGE
  17. #endif
  18. #if defined(SDL_MAIN_NEEDED) || defined(SDL_MAIN_AVAILABLE)
  19. #define main SDL_main
  20. #endif
  21. extern C_LINKAGE int SDL_main(int argc, char *argv[]);
  22. #include "begin_code.h"
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. extern DECLSPEC void SDL_SetMainReady(void);
  27. #ifdef __WIN32__
  28. typedef int SDLCALL tSDL_RegisterApp(char *name, Uint32 style,
  29. void *hInst);
  30. typedef void SDLCALL tSDL_UnregisterApp(void);
  31. #endif
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #include "close_code.h"
  36. #endif