diff options
| author | Mike Pall <mike> | 2025-11-16 19:41:51 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2025-11-16 19:41:51 +0100 |
| commit | e17ee83326f73d2bbfce5750ae8dc592a3b63c27 (patch) | |
| tree | bcce1b3ee6f1637c6e76b80138930113bceffa26 /src/luaconf.h | |
| parent | e274fe760d46c7de66336aec406dc017716aaf21 (diff) | |
| download | luajit-e17ee83326f73d2bbfce5750ae8dc592a3b63c27.tar.gz luajit-e17ee83326f73d2bbfce5750ae8dc592a3b63c27.tar.bz2 luajit-e17ee83326f73d2bbfce5750ae8dc592a3b63c27.zip | |
ELF/Mach-O: Force default visibility for public API functions.
Thanks to Dymphna. #1409
Diffstat (limited to 'src/luaconf.h')
| -rw-r--r-- | src/luaconf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/luaconf.h b/src/luaconf.h index 7cd2edb5..6959313d 100644 --- a/src/luaconf.h +++ b/src/luaconf.h | |||
| @@ -132,6 +132,8 @@ | |||
| 132 | #else | 132 | #else |
| 133 | #define LUA_API __declspec(dllimport) | 133 | #define LUA_API __declspec(dllimport) |
| 134 | #endif | 134 | #endif |
| 135 | #elif (defined(__ELF__) || defined(__MACH__) || defined(__psp2__)) && !((defined(__sun__) && defined(__svr4__)) || defined(__CELLOS_LV2__)) | ||
| 136 | #define LUA_API extern __attribute__((visibility("default"))) | ||
| 135 | #else | 137 | #else |
| 136 | #define LUA_API extern | 138 | #define LUA_API extern |
| 137 | #endif | 139 | #endif |
