aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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!"