summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2018-08-21 20:03:54 -0700
committerSam Lantinga <slouken@libsdl.org>2018-08-21 20:03:54 -0700
commit9505b76b0dd5a9c8d371553b0512bbd94ddf96a1 (patch)
treedc44289139a9f1dc3d02ef8789a3d0ab36b6ef64 /include
parent605c2693179ce35b7da298fd2b07908dd6f0d3ad (diff)
Moved SDL_IsTablet() to a cross-platform API function
Diffstat (limited to 'include')
-rw-r--r--include/SDL_system.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/SDL_system.h b/include/SDL_system.h
index 00eb7a4759..4dc372d6b1 100644
--- a/include/SDL_system.h
+++ b/include/SDL_system.h
@@ -174,15 +174,6 @@ extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath(void);
#endif /* __ANDROID__ */
-#if defined(__ANDROID__) || defined(__IPHONEOS__)
-
-/**
- \brief Return true if the current device is a tablet.
- */
-extern DECLSPEC SDL_bool SDLCALL SDL_IsTablet(void);
-
-#endif
-
/* Platform specific functions for WinRT */
#if defined(__WINRT__) && __WINRT__
@@ -272,6 +263,11 @@ extern DECLSPEC SDL_WinRT_DeviceFamily SDLCALL SDL_WinRTGetDeviceFamily();
#endif /* __WINRT__ */
+/**
+ \brief Return true if the current device is a tablet.
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_IsTablet(void);
+
/* Ends C function definitions when using C++ */
#ifdef __cplusplus
}