Ver código fonte

Define PUBLIC to dllexport on MSVC.

Define PUBLIC to __declspec(dllexport) when _MVC_VER is defined.
tags/mesa-7.9-rc1
Chia-I Wu 15 anos atrás
pai
commit
ba26631d0d

+ 8
- 4
src/egl/main/eglcompiler.h Ver arquivo

@@ -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

/**

+ 2
- 0
src/gallium/include/pipe/p_compiler.h Ver arquivo

@@ -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

+ 2
- 2
src/mapi/mapi/u_compiler.h Ver arquivo

@@ -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


Carregando…
Cancelar
Salvar