mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
This patch pretends to fix run-time symbols clash on Solaris:
- when finding out a way to hide symbols, make decision basing on compiler, not operating system. - Sun Studio supports __hidden declaration specifier for this purpose.
This commit is contained in:
parent
2a623e0eaf
commit
880743284e
1 changed files with 5 additions and 3 deletions
|
@ -236,10 +236,12 @@ by one. */
|
|||
|
||||
/* Linkage specifier for non-static InnoDB symbols (variables and functions)
|
||||
that are only referenced from within InnoDB, not from MySQL */
|
||||
#ifdef __WIN__
|
||||
# define UNIV_INTERN
|
||||
#else
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
||||
# define UNIV_INTERN __attribute__((visibility ("hidden")))
|
||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
||||
# define UNIV_INTERN __hidden
|
||||
#else
|
||||
# define UNIV_INTERN
|
||||
#endif
|
||||
|
||||
#if (!defined(UNIV_DEBUG) && !defined(UNIV_MUST_NOT_INLINE))
|
||||
|
|
Loading…
Reference in a new issue