diff options
author | Emil Velikov <[email protected]> | 2015-02-28 16:35:22 +0000 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-03-05 14:45:53 +0000 |
commit | 7bd1693877e4de9aaf8f6776649fc48db54ec82b (patch) | |
tree | b4752b18050a4287888e66c3f63e2d5fe7cd0b56 /src/egl/main/eglconfig.h | |
parent | 9385c592c68e7304cd9084fe17f27ec17319cdcf (diff) |
egl/main: replace INLINE with inline
Drop the custom keyword in favour of the C99 one. All the places using
it now directly include c99_compat.h which should handle things on
platforms which lack it.
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/egl/main/eglconfig.h')
-rw-r--r-- | src/egl/main/eglconfig.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/egl/main/eglconfig.h b/src/egl/main/eglconfig.h index b00f872ef10..5fa8f330076 100644 --- a/src/egl/main/eglconfig.h +++ b/src/egl/main/eglconfig.h @@ -34,6 +34,8 @@ #include <assert.h> #include <stddef.h> +#include "c99_compat.h" + #include "egltypedefs.h" @@ -86,7 +88,7 @@ struct _egl_config /** * Map an EGL attribute enum to the offset of the member in _EGLConfig. */ -static INLINE EGLint +static inline EGLint _eglOffsetOfConfig(EGLint attr) { switch (attr) { @@ -141,7 +143,7 @@ _eglOffsetOfConfig(EGLint attr) * in the attribute enums. The separation is to catch application errors. * Drivers should never set a key that is an invalid attribute. */ -static INLINE void +static inline void _eglSetConfigKey(_EGLConfig *conf, EGLint key, EGLint val) { EGLint offset = _eglOffsetOfConfig(key); @@ -153,7 +155,7 @@ _eglSetConfigKey(_EGLConfig *conf, EGLint key, EGLint val) /** * Return the value for a given key. */ -static INLINE EGLint +static inline EGLint _eglGetConfigKey(const _EGLConfig *conf, EGLint key) { EGLint offset = _eglOffsetOfConfig(key); @@ -177,7 +179,7 @@ _eglLookupConfig(EGLConfig config, _EGLDisplay *dpy); /** * Return the handle of a linked config. */ -static INLINE EGLConfig +static inline EGLConfig _eglGetConfigHandle(_EGLConfig *conf) { return (EGLConfig) conf; |