summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglimage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/egl/main/eglimage.h')
-rw-r--r--src/egl/main/eglimage.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/egl/main/eglimage.h b/src/egl/main/eglimage.h
index 1b4d6cd0bb1..71c52cadb97 100644
--- a/src/egl/main/eglimage.h
+++ b/src/egl/main/eglimage.h
@@ -30,6 +30,7 @@
#ifndef EGLIMAGE_INCLUDED
#define EGLIMAGE_INCLUDED
+#include "c99_compat.h"
#include "egltypedefs.h"
#include "egldisplay.h"
@@ -92,7 +93,7 @@ _eglInitImage(_EGLImage *img, _EGLDisplay *dpy);
/**
* Increment reference count for the image.
*/
-static INLINE _EGLImage *
+static inline _EGLImage *
_eglGetImage(_EGLImage *img)
{
if (img)
@@ -104,7 +105,7 @@ _eglGetImage(_EGLImage *img)
/**
* Decrement reference count for the image.
*/
-static INLINE EGLBoolean
+static inline EGLBoolean
_eglPutImage(_EGLImage *img)
{
return (img) ? _eglPutResource(&img->Resource) : EGL_FALSE;
@@ -115,7 +116,7 @@ _eglPutImage(_EGLImage *img)
* Link an image to its display and return the handle of the link.
* The handle can be passed to client directly.
*/
-static INLINE EGLImageKHR
+static inline EGLImageKHR
_eglLinkImage(_EGLImage *img)
{
_eglLinkResource(&img->Resource, _EGL_RESOURCE_IMAGE);
@@ -127,7 +128,7 @@ _eglLinkImage(_EGLImage *img)
* Unlink a linked image from its display.
* Accessing an unlinked image should generate EGL_BAD_PARAMETER error.
*/
-static INLINE void
+static inline void
_eglUnlinkImage(_EGLImage *img)
{
_eglUnlinkResource(&img->Resource, _EGL_RESOURCE_IMAGE);
@@ -138,7 +139,7 @@ _eglUnlinkImage(_EGLImage *img)
* Lookup a handle to find the linked image.
* Return NULL if the handle has no corresponding linked image.
*/
-static INLINE _EGLImage *
+static inline _EGLImage *
_eglLookupImage(EGLImageKHR image, _EGLDisplay *dpy)
{
_EGLImage *img = (_EGLImage *) image;
@@ -151,7 +152,7 @@ _eglLookupImage(EGLImageKHR image, _EGLDisplay *dpy)
/**
* Return the handle of a linked image, or EGL_NO_IMAGE_KHR.
*/
-static INLINE EGLImageKHR
+static inline EGLImageKHR
_eglGetImageHandle(_EGLImage *img)
{
_EGLResource *res = (_EGLResource *) img;