Skip to content

Commit

Permalink
Fix _RZ_API visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed Oct 16, 2024
1 parent 0f0d1c7 commit ab21735
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion c/jsdec-plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ RzCorePlugin rz_core_plugin_jsdec = {
#ifdef _MSC_VER
#define _RZ_API __declspec(dllexport)
#else
#define _RZ_API
#define _RZ_API __attribute__((visibility("default")))
#endif

#ifndef CORELIB
Expand Down
7 changes: 0 additions & 7 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ elif build_type == 'cutter'
'c' / 'jsdec-cutter.c'
]

if cc.has_argument('-fvisibility=hidden')
jsdec_c_args += '-fvisibility=hidden'
endif
if cc.has_argument('-flto')
jsdec_c_args += '-flto'
endif

libjsdec = static_library('jsdec', jsdec_src,
c_args : jsdec_c_args,
dependencies: jsdec_deps,
Expand Down

0 comments on commit ab21735

Please sign in to comment.