Fix visibility of UCDN symbols

This commit is contained in:
Behdad Esfahbod 2012-10-02 17:42:13 -04:00
parent 3f33f0d1f2
commit 32dbfcf763
2 changed files with 19 additions and 2 deletions

View File

@ -18,9 +18,7 @@
#include "hb-unicode-private.hh" #include "hb-unicode-private.hh"
HB_BEGIN_DECLS
#include "ucdn.h" #include "ucdn.h"
HB_END_DECLS
static const hb_script_t ucdn_script_translate[] = static const hb_script_t ucdn_script_translate[] =
{ {

View File

@ -17,6 +17,23 @@
#ifndef UCDN_H #ifndef UCDN_H
#define UCDN_H #define UCDN_H
#if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__)
# define HB_BEGIN_VISIBILITY _Pragma ("GCC visibility push(hidden)")
# define HB_END_VISIBILITY _Pragma ("GCC visibility pop")
#else
# define HB_BEGIN_VISIBILITY
# define HB_END_VISIBILITY
#endif
#ifdef __cplusplus
# define HB_BEGIN_HEADER extern "C" { HB_BEGIN_VISIBILITY
# define HB_END_HEADER HB_END_VISIBILITY }
#else
# define HB_BEGIN_HEADER HB_BEGIN_VISIBILITY
# define HB_END_HEADER HB_END_VISIBILITY
#endif
HB_BEGIN_HEADER
#include <stdint.h> #include <stdint.h>
#define UCDN_EAST_ASIAN_F 0 #define UCDN_EAST_ASIAN_F 0
@ -287,4 +304,6 @@ int ucdn_compat_decompose(uint32_t code, uint32_t *decomposed);
*/ */
int ucdn_compose(uint32_t *code, uint32_t a, uint32_t b); int ucdn_compose(uint32_t *code, uint32_t a, uint32_t b);
HB_END_HEADER
#endif #endif