[hb-old] Add visibility attributes
This commit is contained in:
parent
6a9d43c317
commit
0bcbe88cf3
@ -31,12 +31,14 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#define HB_BEGIN_VISIBILITY _Pragma ("GCC visibility push(hidden)")
|
||||||
|
#define HB_END_VISIBILITY _Pragma ("GCC visibility pop")
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#define HB_BEGIN_HEADER extern "C" {
|
#define HB_BEGIN_HEADER extern "C" { HB_BEGIN_VISIBILITY
|
||||||
#define HB_END_HEADER }
|
#define HB_END_HEADER HB_END_VISIBILITY }
|
||||||
#else
|
#else
|
||||||
#define HB_BEGIN_HEADER /* nothing */
|
#define HB_BEGIN_HEADER HB_BEGIN_VISIBILITY
|
||||||
#define HB_END_HEADER /* nothing */
|
#define HB_END_HEADER HB_END_VISIBILITY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
HB_BEGIN_HEADER
|
HB_BEGIN_HEADER
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
HB_BEGIN_HEADER
|
HB_BEGIN_HEADER
|
||||||
|
|
||||||
#ifndef HB_INTERNAL
|
#ifndef HB_INTERNAL
|
||||||
# define HB_INTERNAL
|
# define HB_INTERNAL __attribute__((visibility("hidden")))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
|
Loading…
Reference in New Issue
Block a user