mirror of
https://github.com/encounter/SDL.git
synced 2025-12-11 22:44:17 +00:00
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:
@@ -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() */
|
||||
|
||||
Reference in New Issue
Block a user