Add support for controlling symbol visibility using the HP and

Solaris C compilers.
This commit is contained in:
Todd C. Miller
2012-06-15 14:18:23 -04:00
parent 203abd98b9
commit 60a3019483
3 changed files with 120 additions and 2 deletions

View File

@@ -54,8 +54,16 @@
#ifndef __dso_public
# ifdef HAVE_DSO_VISIBILITY
# define __dso_public __attribute__((__visibility__("default")))
# define __dso_hidden __attribute__((__visibility__("hidden")))
# if defined(__GNUC__)
# define __dso_public __attribute__((__visibility__("default")))
# define __dso_hidden __attribute__((__visibility__("hidden")))
# elif defined(__SUNPRO_C)
# define __dso_public __global
# define __dso_hidden __hidden
# else
# define __dso_public __declspec(dllexport)
# define __dso_hidden
# endif
# else
# define __dso_public
# define __dso_hidden