SDL_os2.h 710 B

12345678910111213141516171819202122232425262728
  1. #ifndef SDL_os2_h_
  2. #define SDL_os2_h_
  3. #include "SDL_log.h"
  4. #include "SDL_stdinc.h"
  5. #include "geniconv/geniconv.h"
  6. #if OS2DEBUG==SDLOUTPUT
  7. # define debug(s,...) SDL_LogDebug( SDL_LOG_CATEGORY_APPLICATION, \
  8. __func__"(): "##s, ##__VA_ARGS__ )
  9. #elif defined(OS2DEBUG)
  10. # define debug(s,...) printf( __func__"(): "##s"\n", ##__VA_ARGS__ )
  11. #else
  12. # define debug(s,...)
  13. #endif /* OS2DEBUG */
  14. // StrUTF8New() - geniconv/sys2utf8.c.
  15. #define OS2_SysToUTF8(S) StrUTF8New( 1, S, SDL_strlen( S ) + 1 )
  16. #define OS2_UTF8ToSys(S) StrUTF8New( 0, (char *)(S), SDL_strlen( S ) + 1 )
  17. // SDL_OS2Quit() will be called from SDL_QuitSubSystem().
  18. void SDL_OS2Quit();
  19. #endif /* SDL_os2_h_ */