Skip to content

Commit

Permalink
Make libaltrace_record only export the public OpenAL API entry points.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 1, 2019
1 parent 35fae69 commit ddf9875
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -13,6 +13,7 @@ add_library(altrace_record SHARED
altrace_record.c
altrace_common.c
)
set_target_properties(altrace_record PROPERTIES C_VISIBILITY_PRESET hidden)
target_link_libraries(altrace_record dl)
install(TARGETS altrace_record LIBRARY DESTINATION lib)

Expand Down
6 changes: 6 additions & 0 deletions altrace_record.c
Expand Up @@ -14,6 +14,12 @@ const char *GAppName = "altrace_record";
#ifdef _MSC_VER
#define AL_API __declspec(dllexport)
#define ALC_API __declspec(dllexport)
#elif defined(__GNUC__) || defined(__clang__)
#define AL_API __attribute__((visibility("default")))
#define ALC_API __attribute__((visibility("default")))
#elif defined(__GNUC__) || defined(__clang__)
#define AL_API extern
#define ALC_API extern
#endif

#include "altrace_common.h"
Expand Down

0 comments on commit ddf9875

Please sign in to comment.