Skip to content

Commit

Permalink
Added the Sun Studio equivalent of -fvisibility=hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Apr 17, 2009
1 parent 0bc3289 commit 57d908d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/physfs.h
Expand Up @@ -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
Expand Down

0 comments on commit 57d908d

Please sign in to comment.