aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan Elliott <ian@LunarG.com>2015-02-18 12:38:04 -0700
committerIan Elliott <ian@LunarG.com>2015-02-18 15:47:24 -0700
commitf5f63f827731faff2925537ddde65ff34af7ea89 (patch)
tree2f9948892c93b03340fe536d41413da6b436ec85 /include
parent501349c19afe120602f4e68dda76d440e8614846 (diff)
downloadusermoji-f5f63f827731faff2925537ddde65ff34af7ea89.tar.xz
Win: Can now use "static inline" on Windows (i.e. no code mods).
Diffstat (limited to 'include')
-rw-r--r--include/xglIcd.h4
-rw-r--r--include/xglPlatform.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/include/xglIcd.h b/include/xglIcd.h
index 3efffe6d..1c25936d 100644
--- a/include/xglIcd.h
+++ b/include/xglIcd.h
@@ -18,12 +18,12 @@ typedef union _XGL_LOADER_DATA {
void *loaderData;
} XGL_LOADER_DATA;
-STATIC_INLINE void set_loader_magic_value(void *pNewObject) {
+static inline void set_loader_magic_value(void *pNewObject) {
XGL_LOADER_DATA *loader_info = (XGL_LOADER_DATA *) pNewObject;
loader_info->loaderMagic = ICD_LOADER_MAGIC;
}
-STATIC_INLINE bool valid_loader_magic_value(void *pNewObject) {
+static inline bool valid_loader_magic_value(void *pNewObject) {
const XGL_LOADER_DATA *loader_info = (XGL_LOADER_DATA *) pNewObject;
return loader_info->loaderMagic == ICD_LOADER_MAGIC;
}
diff --git a/include/xglPlatform.h b/include/xglPlatform.h
index af006a24..aff2e5b3 100644
--- a/include/xglPlatform.h
+++ b/include/xglPlatform.h
@@ -44,13 +44,13 @@ extern "C"
#define XGLAPI __stdcall
// C99:
- #define STATIC_INLINE static
+#ifndef __cplusplus
+ #undef inline
+ #define inline __inline
+#endif // __cplusplus
#elif defined(__GNUC__)
// On other platforms using GCC, XGLAPI stays undefined
#define XGLAPI
-
- // C99:
- #define STATIC_INLINE static inline
#else
// Unsupported Platform!
#error "Unsupported OS Platform detected!"