#include <assert.h>
#include <stddef.h>
+#include "c99_compat.h"
+
#include "egltypedefs.h"
/**
* Map an EGL attribute enum to the offset of the member in _EGLConfig.
*/
-static INLINE EGLint
+static inline EGLint
_eglOffsetOfConfig(EGLint attr)
{
switch (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);
/**
* Return the value for a given key.
*/
-static INLINE EGLint
+static inline EGLint
_eglGetConfigKey(const _EGLConfig *conf, EGLint key)
{
EGLint offset = _eglOffsetOfConfig(key);
/**
* Return the handle of a linked config.
*/
-static INLINE EGLConfig
+static inline EGLConfig
_eglGetConfigHandle(_EGLConfig *conf)
{
return (EGLConfig) conf;