Skip to content

Commit

Permalink
Add macro for forcing hidden visibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
TallJimbo committed Sep 19, 2018
1 parent 2cc461c commit 3b7656b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/lsst/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,11 @@
*/
# define LSST_EXPORT __attribute__ ((visibility("default")))

/**
* Make a symbol hidden even if default visiblity is public.
*
* This implementation works for gcc and clang; it has not been tested for other compilers
*/
# define LSST_PRIVATE __attribute__ ((visibility("hidden")))

#endif

0 comments on commit 3b7656b

Please sign in to comment.