From ba26631d0d936523c7a8f002cf469e569aa6d7a3 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 31 May 2010 11:15:06 +0800 Subject: Define PUBLIC to dllexport on MSVC. Define PUBLIC to __declspec(dllexport) when _MVC_VER is defined. --- src/egl/main/eglcompiler.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/egl/main/eglcompiler.h') diff --git a/src/egl/main/eglcompiler.h b/src/egl/main/eglcompiler.h index 6ecee51d7c..90c75e84b2 100644 --- a/src/egl/main/eglcompiler.h +++ b/src/egl/main/eglcompiler.h @@ -62,10 +62,14 @@ /** * Function visibility */ -#if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) -# define PUBLIC __attribute__((visibility("default"))) -#else -# define PUBLIC +#ifndef PUBLIC +# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) +# define PUBLIC __attribute__((visibility("default"))) +# elif defined(_MSC_VER) +# define PUBLIC __declspec(dllexport) +# else +# define PUBLIC +# endif #endif /** -- cgit v1.2.3