diff options
author | E. Westbrook <github@westbrook.io> | 2019-02-28 16:32:07 -0700 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2019-03-10 00:04:20 -0700 |
commit | 21514304be9e98a4386cb18542582068a59c5586 (patch) | |
tree | 1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/unixdgram.h | |
parent | 3a37ab88906bcdbad17051decc0e4c4c141a17c9 (diff) | |
download | luasocket-21514304be9e98a4386cb18542582068a59c5586.tar.gz luasocket-21514304be9e98a4386cb18542582068a59c5586.tar.bz2 luasocket-21514304be9e98a4386cb18542582068a59c5586.zip |
wrap visibility pragmas in #ifndef _WIN32
Diffstat (limited to 'src/unixdgram.h')
-rw-r--r-- | src/unixdgram.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unixdgram.h b/src/unixdgram.h index 433fe25..a1a0166 100644 --- a/src/unixdgram.h +++ b/src/unixdgram.h | |||
@@ -15,10 +15,14 @@ | |||
15 | 15 | ||
16 | #include "unix.h" | 16 | #include "unix.h" |
17 | 17 | ||
18 | #ifndef _WIN32 | ||
18 | #pragma GCC visibility push(hidden) | 19 | #pragma GCC visibility push(hidden) |
20 | #endif | ||
19 | 21 | ||
20 | int unixdgram_open(lua_State *L); | 22 | int unixdgram_open(lua_State *L); |
21 | 23 | ||
24 | #ifndef _WIN32 | ||
22 | #pragma GCC visibility pop | 25 | #pragma GCC visibility pop |
26 | #endif | ||
23 | 27 | ||
24 | #endif /* UNIXDGRAM_H */ | 28 | #endif /* UNIXDGRAM_H */ |