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/unixdgram.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/unixdgram.h')
-rw-r--r-- | src/unixdgram.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unixdgram.h b/src/unixdgram.h index 7187966..a1a0166 100644 --- a/src/unixdgram.h +++ b/src/unixdgram.h | |||
@@ -15,6 +15,14 @@ | |||
15 | 15 | ||
16 | #include "unix.h" | 16 | #include "unix.h" |
17 | 17 | ||
18 | #ifndef _WIN32 | ||
19 | #pragma GCC visibility push(hidden) | ||
20 | #endif | ||
21 | |||
18 | int unixdgram_open(lua_State *L); | 22 | int unixdgram_open(lua_State *L); |
19 | 23 | ||
24 | #ifndef _WIN32 | ||
25 | #pragma GCC visibility pop | ||
26 | #endif | ||
27 | |||
20 | #endif /* UNIXDGRAM_H */ | 28 | #endif /* UNIXDGRAM_H */ |