Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lprefix.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include "c-api/compat-5.3.h"

#undef LUAMOD_API
#define LUAMOD_API extern
#define LUAMOD_API __attribute__((visibility("default"))) extern

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs to be wrapped with if defined(__GNUC__) like the other cases below.



#ifdef lutf8lib_c
Expand Down Expand Up @@ -165,7 +165,7 @@ LUAMOD_API int luaopen_compat53_string (lua_State *L) {
*/
# undef LUAMOD_API
# if defined(__GNUC__) || __has_attribute(__unused__)
# define LUAMOD_API __attribute__((__unused__)) static
# define LUAMOD_API __attribute__((__unused__, visibility("default"))) static
# else
# define LUAMOD_API static
# endif
Expand Down Expand Up @@ -274,7 +274,7 @@ LUAMOD_API int luaopen_compat53_io (lua_State *L) {
*/
# undef LUAMOD_API
# if defined(__GNUC__) || __has_attribute(__unused__)
# define LUAMOD_API __attribute__((__unused__)) static
# define LUAMOD_API __attribute__((__unused__, visibility("default"))) static
# else
# define LUAMOD_API static
# endif
Expand Down