diff options
Diffstat (limited to 'gruel')
-rw-r--r-- | gruel/src/include/gruel/attributes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gruel/src/include/gruel/attributes.h b/gruel/src/include/gruel/attributes.h index 8c9a57b47..baa5521c8 100644 --- a/gruel/src/include/gruel/attributes.h +++ b/gruel/src/include/gruel/attributes.h @@ -54,6 +54,13 @@ #endif //////////////////////////////////////////////////////////////////////// +// define inline when building C +//////////////////////////////////////////////////////////////////////// +#if defined(_MSC_VER) && !defined(__cplusplus) && !defined(inline) +# define inline __inline +#endif + +//////////////////////////////////////////////////////////////////////// // suppress warnings //////////////////////////////////////////////////////////////////////// #ifdef _MSC_VER |