From 7bd1693877e4de9aaf8f6776649fc48db54ec82b Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sat, 28 Feb 2015 16:35:22 +0000 Subject: 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 Reviewed-by: Matt Turner Reviewed-by: Brian Paul --- src/egl/main/egldisplay.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/egl/main/egldisplay.h') diff --git a/src/egl/main/egldisplay.h b/src/egl/main/egldisplay.h index bcdc2b2b693..213b96a680d 100644 --- a/src/egl/main/egldisplay.h +++ b/src/egl/main/egldisplay.h @@ -31,6 +31,7 @@ #ifndef EGLDISPLAY_INCLUDED #define EGLDISPLAY_INCLUDED +#include "c99_compat.h" #include "egltypedefs.h" #include "egldefines.h" @@ -197,7 +198,7 @@ _eglCheckResource(void *res, _EGLResourceType type, _EGLDisplay *dpy); * Lookup a handle to find the linked display. * Return NULL if the handle has no corresponding linked display. */ -static INLINE _EGLDisplay * +static inline _EGLDisplay * _eglLookupDisplay(EGLDisplay display) { _EGLDisplay *dpy = (_EGLDisplay *) display; @@ -210,7 +211,7 @@ _eglLookupDisplay(EGLDisplay display) /** * Return the handle of a linked display, or EGL_NO_DISPLAY. */ -static INLINE EGLDisplay +static inline EGLDisplay _eglGetDisplayHandle(_EGLDisplay *dpy) { return (EGLDisplay) ((dpy) ? dpy : EGL_NO_DISPLAY); @@ -240,7 +241,7 @@ _eglUnlinkResource(_EGLResource *res, _EGLResourceType type); /** * Return true if the resource is linked. */ -static INLINE EGLBoolean +static inline EGLBoolean _eglIsResourceLinked(_EGLResource *res) { return res->IsLinked; -- cgit v1.2.3