summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglapi.c
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-02-28 16:39:10 +0000
committerEmil Velikov <[email protected]>2015-03-05 14:45:53 +0000
commitd780012cd75c24394b043b107d17eb8199ae2dc7 (patch)
tree0ebf81375589f5c7ebab1572f29d716ff8a5079c /src/egl/main/eglapi.c
parent7bd1693877e4de9aaf8f6776649fc48db54ec82b (diff)
egl/main: replace __FUNCTION__ with __func__
The latter is a C99 standard, and our current wrapper c99_compat.h should handle non-compliant compilers. Drop the c99_compat.h inclusion from eglcompiler.h altogether, as it's no longer required. 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/eglapi.c')
-rw-r--r--src/egl/main/eglapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index cc74b1a7b08..22588300644 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -113,7 +113,7 @@
_eglUnlockDisplay(disp); \
/* EGL error codes are non-zero */ \
if (err) \
- _eglError(err, __FUNCTION__); \
+ _eglError(err, __func__); \
return ret; \
} while (0)
@@ -131,14 +131,14 @@
#define _EGL_CHECK_DISPLAY(disp, ret, drv) \
do { \
- drv = _eglCheckDisplay(disp, __FUNCTION__); \
+ drv = _eglCheckDisplay(disp, __func__); \
if (!drv) \
RETURN_EGL_ERROR(disp, 0, ret); \
} while (0)
#define _EGL_CHECK_OBJECT(disp, type, obj, ret, drv) \
do { \
- drv = _eglCheck ## type(disp, obj, __FUNCTION__); \
+ drv = _eglCheck ## type(disp, obj, __func__); \
if (!drv) \
RETURN_EGL_ERROR(disp, 0, ret); \
} while (0)