aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglcurrent.h
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-02-28 16:35:22 +0000
committerEmil Velikov <[email protected]>2015-03-05 14:45:53 +0000
commit7bd1693877e4de9aaf8f6776649fc48db54ec82b (patch)
treeb4752b18050a4287888e66c3f63e2d5fe7cd0b56 /src/egl/main/eglcurrent.h
parent9385c592c68e7304cd9084fe17f27ec17319cdcf (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/eglcurrent.h')
-rw-r--r--src/egl/main/eglcurrent.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/egl/main/eglcurrent.h b/src/egl/main/eglcurrent.h
index 45fcc64aad4..a2856d25956 100644
--- a/src/egl/main/eglcurrent.h
+++ b/src/egl/main/eglcurrent.h
@@ -29,6 +29,7 @@
#ifndef EGLCURRENT_INCLUDED
#define EGLCURRENT_INCLUDED
+#include "c99_compat.h"
#include "egltypedefs.h"
@@ -61,7 +62,7 @@ struct _egl_thread_info
/**
* Return true if a client API enum is recognized.
*/
-static INLINE EGLBoolean
+static inline EGLBoolean
_eglIsApiValid(EGLenum api)
{
return (api >= _EGL_API_FIRST_API && api <= _EGL_API_LAST_API);
@@ -72,7 +73,7 @@ _eglIsApiValid(EGLenum api)
* Convert a client API enum to an index, for use by thread info.
* The client API enum is assumed to be valid.
*/
-static INLINE EGLint
+static inline EGLint
_eglConvertApiToIndex(EGLenum api)
{
return api - _EGL_API_FIRST_API;
@@ -83,7 +84,7 @@ _eglConvertApiToIndex(EGLenum api)
* Convert an index, used by thread info, to a client API enum.
* The index is assumed to be valid.
*/
-static INLINE EGLenum
+static inline EGLenum
_eglConvertApiFromIndex(EGLint idx)
{
return _EGL_API_FIRST_API + idx;