forked from bartvdbraak/blender
80d1d624d3
This is mainly to address old issue when one need to have SDL library installed in order to use our official builds. Some hip distros already installs SDL, but it's not quite the same across all the variety of the distros. We also now switching to SDL-2.0, most of the distros have it in repositories already, so it shouldn't be huge deal to install it if needed. Reviewers: campbellbarton Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D878
49 lines
990 B
C
49 lines
990 B
C
|
|
#ifndef _SDL_system_h
|
|
#define _SDL_system_h
|
|
|
|
#include "SDL_stdinc.h"
|
|
|
|
#if defined(__IPHONEOS__) && __IPHONEOS__
|
|
#include "SDL_video.h"
|
|
#include "SDL_keyboard.h"
|
|
#endif
|
|
|
|
#include "begin_code.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if defined(__IPHONEOS__) && __IPHONEOS__
|
|
|
|
typedef int SDLCALL tSDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
|
|
typedef void SDLCALL tSDL_iPhoneSetEventPump(SDL_bool enabled);
|
|
|
|
#endif
|
|
|
|
#if defined(__ANDROID__) && __ANDROID__
|
|
|
|
typedef void * SDLCALL tSDL_AndroidGetJNIEnv();
|
|
|
|
typedef void * SDLCALL tSDL_AndroidGetActivity();
|
|
|
|
#define SDL_ANDROID_EXTERNAL_STORAGE_READ 0x01
|
|
#define SDL_ANDROID_EXTERNAL_STORAGE_WRITE 0x02
|
|
|
|
typedef const char * SDLCALL tSDL_AndroidGetInternalStoragePath();
|
|
|
|
typedef int SDLCALL tSDL_AndroidGetExternalStorageState();
|
|
|
|
typedef const char * SDLCALL tSDL_AndroidGetExternalStoragePath();
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#include "close_code.h"
|
|
|
|
#endif
|
|
|