Commit f483b99a authored by Sebastian Ramacher's avatar Sebastian Ramacher

Add macro to hide internal symbols

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 4da5d7b2
......@@ -17,6 +17,16 @@ extern "C" {
# endif
#endif
#ifndef HIDDEN
# if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__)
# define HIDDEN __attribute__((visibility("hidden")))
# elif defined(__SUNPRO_C)
# define HIDDEN __hidden
# else
# define HIDDEN
# endif
#endif
#ifdef __cplusplus
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment