Added the Sun Studio equivalent of -fvisibility=hidden
This commit is contained in:
parent
0bc32891ba
commit
57d908dca0
|
@ -75,6 +75,7 @@ ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
|||
|
||||
IF(CMAKE_C_COMPILER_ID STREQUAL "SunPro")
|
||||
ADD_DEFINITIONS(-erroff=E_EMPTY_TRANSLATION_UNIT)
|
||||
ADD_DEFINITIONS(-xldscope=hidden)
|
||||
ENDIF(CMAKE_C_COMPILER_ID STREQUAL "SunPro")
|
||||
|
||||
IF(MSVC)
|
||||
|
|
|
@ -219,6 +219,8 @@ extern "C" {
|
|||
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
|
||||
#if (defined _MSC_VER)
|
||||
#define __EXPORT__ __declspec(dllexport)
|
||||
#elif (defined __SUNPRO_C)
|
||||
#define __EXPORT__ __global
|
||||
#elif ((__GNUC__ >= 3) && (!__EMX__))
|
||||
#define __EXPORT__ __attribute__((visibility("default")))
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue