aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan Elliott <ian@LunarG.com>2015-02-12 13:20:10 -0700
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2015-02-12 16:31:13 -0700
commit22ec3a52c48963ef92a87fd32a9cc27dae617868 (patch)
treee985667d73a283ee1bb2e355c06fdf43002ad672 /include
parent33e26ab3470df2a9aba0171dc0815776be94d73f (diff)
downloadusermoji-22ec3a52c48963ef92a87fd32a9cc27dae617868.tar.xz
Win/icd: Move STATIC_INLINE macro, and use for magic funcs.
The STATIC_INLINE macro is now in "xglPlatform.h". It is also now being used by the *_loader_magic_value() functions. This allows it to be compiled on Windows.
Diffstat (limited to 'include')
-rw-r--r--include/xglPlatform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/xglPlatform.h b/include/xglPlatform.h
index 79f37c93..af006a24 100644
--- a/include/xglPlatform.h
+++ b/include/xglPlatform.h
@@ -42,9 +42,15 @@ extern "C"
#if defined(_WIN32)
// On Windows, XGLAPI should equate to the __stdcall convention
#define XGLAPI __stdcall
+
+ // C99:
+ #define STATIC_INLINE static
#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!"