From: Javier Viguera Date: Mon, 21 Oct 2013 17:39:17 +0200 Subject: [PATCH] fix linux build check Signed-off-by: Javier Viguera --- usr/include/EGL/eglext.h | 6 +++--- usr/include/EGL/eglfslext.h | 2 +- usr/include/VG/ext.h | 2 +- usr/include/VG/openvg.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/usr/include/EGL/eglext.h b/usr/include/EGL/eglext.h index 6325104..3ef1ad4 100755 --- a/usr/include/EGL/eglext.h +++ b/usr/include/EGL/eglext.h @@ -164,11 +164,11 @@ typedef void* EGLSyncKHR; * nanoseconds (unadjusted standard time). Here, it is defined as * appropriate for an ISO C compiler. */ -#ifndef _LINUX +#ifndef __linux__ typedef uint64_t EGLTimeKHR; -#else // _LINUX +#else // __linux__ typedef unsigned long long EGLTimeKHR; -#endif // _LINUX +#endif // __linux__ #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0xFFF8 #define EGL_SYNC_STATUS_KHR 0xFFF7 diff --git a/usr/include/EGL/eglfslext.h b/usr/include/EGL/eglfslext.h index 4f05161..47a915b 100755 --- a/usr/include/EGL/eglfslext.h +++ b/usr/include/EGL/eglfslext.h @@ -65,7 +65,7 @@ typedef struct eglYUV_INFO } eglYUVInfo; #endif -#ifdef _LINUX +#ifdef __linux__ struct EGLImageInfoFSL { void *mem_virt[3]; //virtual addresses for Y/U/V planes diff --git a/usr/include/VG/ext.h b/usr/include/VG/ext.h index b41c5dc..11f49a8 100755 --- a/usr/include/VG/ext.h +++ b/usr/include/VG/ext.h @@ -15,7 +15,7 @@ extern "C" { #endif -#ifndef _LINUX +#ifndef __linux__ #include #else #include "openvg.h" diff --git a/usr/include/VG/openvg.h b/usr/include/VG/openvg.h index bee327a..78e1e48 100755 --- a/usr/include/VG/openvg.h +++ b/usr/include/VG/openvg.h @@ -449,7 +449,7 @@ typedef enum { # endif # elif defined(__APPLE__) # define VG_API_CALL extern -# elif defined(_LINUX) +# elif defined(__linux__) # if defined (OPENVG_DLL_EXPORTS) # define VG_API_CALL extern # else