From 22ec3a52c48963ef92a87fd32a9cc27dae617868 Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Thu, 12 Feb 2015 13:20:10 -0700 Subject: 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. --- include/xglPlatform.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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!" -- cgit v1.2.3