os2: update include paths. add missing libc includes to geniconv.

This commit is contained in:
Ozkan Sezer
2020-10-14 23:01:01 +03:00
parent 74cfb81dbb
commit 110a0f7bb1
13 changed files with 34 additions and 36 deletions

View File

@@ -1,31 +1,28 @@
#ifndef _SDL_os2_h
#define _SDL_os2_h
#ifndef SDL_os2_h_
#define SDL_os2_h_
#include "SDL_log.h"
#include "SDL_stdinc.h"
#include ".\src\core\os2\geniconv\geniconv.h"
#include "geniconv/geniconv.h"
#if OS2DEBUG==SDLOUTPUT
# define debug(s,...) SDL_LogDebug( SDL_LOG_CATEGORY_APPLICATION, \
__func__"(): "##s, ##__VA_ARGS__ )
#elif defined(OS2DEBUG)
# define debug(s,...) printf( __func__"(): "##s"\n", ##__VA_ARGS__ )
#else
# define debug(s,...)
#endif // OS2DEBUG
#endif /* OS2DEBUG */
// StrUTF8New() - geniconv\sys2utf8.c.
// StrUTF8New() - geniconv/sys2utf8.c.
#define OS2_SysToUTF8(S) StrUTF8New( 1, S, SDL_strlen( S ) + 1 )
#define OS2_UTF8ToSys(S) StrUTF8New( 0, (char *)(S), SDL_strlen( S ) + 1 )
// SDL_OS2Quit() will be called from SDL_QuitSubSystem().
void SDL_OS2Quit();
#endif // _SDL_os2_h
#endif /* SDL_os2_h_ */