Added the Sun Studio equivalent of -fvisibility=hidden

This commit is contained in:
Ryan C. Gordon 2009-04-16 22:37:38 -04:00
parent 0bc32891ba
commit 57d908dca0
2 changed files with 3 additions and 0 deletions

View File

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

View File

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