Define PUBLIC to __declspec(dllexport) when _MVC_VER is defined.tags/mesa-7.9-rc1
@@ -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 | |||
/** |
@@ -102,6 +102,8 @@ typedef unsigned char boolean; | |||
#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 |
@@ -28,10 +28,10 @@ | |||
#ifndef PUBLIC | |||
# if defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) | |||
# define PUBLIC __attribute__((visibility("default"))) | |||
# define HIDDEN __attribute__((visibility("hidden"))) | |||
# elif defined(_MSC_VER) | |||
# define PUBLIC __declspec(dllexport) | |||
# else | |||
# define PUBLIC | |||
# define HIDDEN | |||
# endif | |||
#endif | |||