Skip to content
Permalink
Browse files
Added the Sun Studio equivalent of -fvisibility=hidden
  • Loading branch information
icculus committed Apr 17, 2009
1 parent 0bc3289 commit 57d908dca00161ab0194ac17820a9f6a2b4ab1b2
Showing with 3 additions and 0 deletions.
  1. +1 −0 CMakeLists.txt
  2. +2 −0 src/physfs.h
@@ -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

0 comments on commit 57d908d

Please sign in to comment.