Windows GDK Support (#5830)
* Added GDK * Simplfied checks in SDL_config_wingdk.h * Added testgdk sample * Added GDK readme * Fixed error in merge of SDL_windows.h * Additional GDK fixes * OpenWatcom should not export _SDL_GDKGetTaskQueue * Formatting fixes * Moved initialization code into SDL_GDKRunApp
This commit is contained in:
parent
314bb5a1ed
commit
3b191580c3
68 changed files with 4150 additions and 93 deletions
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "../SDL_internal.h"
|
||||
|
||||
#if defined(__WIN32__)
|
||||
#if defined(__WIN32__) || defined(__GDK__)
|
||||
#include "../core/windows/SDL_windows.h"
|
||||
#endif
|
||||
|
||||
|
@ -62,7 +62,7 @@
|
|||
#include "nacl_io/nacl_io.h"
|
||||
#endif
|
||||
|
||||
#ifdef __WIN32__
|
||||
#if defined(__WIN32__) || defined(__GDK__)
|
||||
|
||||
/* Functions to read/write Win32 API file pointers */
|
||||
|
||||
|
@ -303,7 +303,7 @@ windows_file_close(SDL_RWops * context)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
#endif /* __WIN32__ */
|
||||
#endif /* defined(__WIN32__) || defined(__GDK__) */
|
||||
|
||||
#ifdef HAVE_STDIO_H
|
||||
|
||||
|
@ -574,7 +574,7 @@ SDL_RWFromFile(const char *file, const char *mode)
|
|||
rwops->close = Android_JNI_FileClose;
|
||||
rwops->type = SDL_RWOPS_JNIFILE;
|
||||
|
||||
#elif defined(__WIN32__)
|
||||
#elif defined(__WIN32__) || defined(__GDK__)
|
||||
rwops = SDL_AllocRW();
|
||||
if (!rwops)
|
||||
return NULL; /* SDL_SetError already setup by SDL_AllocRW() */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue