summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglsync.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/eglsync.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/eglsync.h')
-rw-r--r--src/egl/main/eglsync.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/egl/main/eglsync.h b/src/egl/main/eglsync.h
index 9708d095cfd..cd2d78326f9 100644
--- a/src/egl/main/eglsync.h
+++ b/src/egl/main/eglsync.h
@@ -30,6 +30,8 @@
#define EGLSYNC_INCLUDED
+#include "c99_compat.h"
+
#include "egltypedefs.h"
#include "egldisplay.h"
@@ -61,7 +63,7 @@ _eglGetSyncAttribKHR(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSync *sync,
/**
* Increment reference count for the sync.
*/
-static INLINE _EGLSync *
+static inline _EGLSync *
_eglGetSync(_EGLSync *sync)
{
if (sync)
@@ -73,7 +75,7 @@ _eglGetSync(_EGLSync *sync)
/**
* Decrement reference count for the sync.
*/
-static INLINE EGLBoolean
+static inline EGLBoolean
_eglPutSync(_EGLSync *sync)
{
return (sync) ? _eglPutResource(&sync->Resource) : EGL_FALSE;
@@ -84,7 +86,7 @@ _eglPutSync(_EGLSync *sync)
* Link a sync to its display and return the handle of the link.
* The handle can be passed to client directly.
*/
-static INLINE EGLSyncKHR
+static inline EGLSyncKHR
_eglLinkSync(_EGLSync *sync)
{
_eglLinkResource(&sync->Resource, _EGL_RESOURCE_SYNC);
@@ -95,7 +97,7 @@ _eglLinkSync(_EGLSync *sync)
/**
* Unlink a linked sync from its display.
*/
-static INLINE void
+static inline void
_eglUnlinkSync(_EGLSync *sync)
{
_eglUnlinkResource(&sync->Resource, _EGL_RESOURCE_SYNC);
@@ -106,7 +108,7 @@ _eglUnlinkSync(_EGLSync *sync)
* Lookup a handle to find the linked sync.
* Return NULL if the handle has no corresponding linked sync.
*/
-static INLINE _EGLSync *
+static inline _EGLSync *
_eglLookupSync(EGLSyncKHR handle, _EGLDisplay *dpy)
{
_EGLSync *sync = (_EGLSync *) handle;
@@ -119,7 +121,7 @@ _eglLookupSync(EGLSyncKHR handle, _EGLDisplay *dpy)
/**
* Return the handle of a linked sync, or EGL_NO_SYNC_KHR.
*/
-static INLINE EGLSyncKHR
+static inline EGLSyncKHR
_eglGetSyncHandle(_EGLSync *sync)
{
_EGLResource *res = (_EGLResource *) sync;