diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2019-03-11 00:08:41 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 00:08:41 -0300 |
commit | c89a931cc31f219d51dd32a8a253d5ee3fbd31be (patch) | |
tree | 1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/except.h | |
parent | 2af4872a401cbd0c1255e19ee26620f0431dd9f5 (diff) | |
parent | 21514304be9e98a4386cb18542582068a59c5586 (diff) | |
download | luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.gz luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.bz2 luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.zip |
Merge pull request #271 from ewestbrook/pragmavisibility
Use visibility pragma around declarations instead of attributes on definitions
Diffstat (limited to 'src/except.h')
-rw-r--r-- | src/except.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/except.h b/src/except.h index 2497c05..71c31fd 100644 --- a/src/except.h +++ b/src/except.h | |||
@@ -31,8 +31,16 @@ | |||
31 | * exceptions on error, but that don't interrupt the user script. | 31 | * exceptions on error, but that don't interrupt the user script. |
32 | \*=========================================================================*/ | 32 | \*=========================================================================*/ |
33 | 33 | ||
34 | #include "lua.h" | 34 | #include "luasocket.h" |
35 | |||
36 | #ifndef _WIN32 | ||
37 | #pragma GCC visibility push(hidden) | ||
38 | #endif | ||
35 | 39 | ||
36 | int except_open(lua_State *L); | 40 | int except_open(lua_State *L); |
37 | 41 | ||
42 | #ifndef _WIN32 | ||
43 | #pragma GCC visibility pop | ||
44 | #endif | ||
45 | |||
38 | #endif | 46 | #endif |