From 536796c40916a781af745b60dbfe9f25cda4431a Mon Sep 17 00:00:00 2001
From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= <tim@centricular.com>
Date: Sat, 17 Feb 2018 21:25:51 +0000
Subject: [PATCH] lib: decorate fribidi_version_info with FRIBIDI_ENTRY

... and map FRIBIDI_ENTRY to extern if it's undefined
instead of nothing.

This is useful for when symbol visibility is controlled
via FRIBIDI_ENTRY as in the Meson build.
---
 lib/fribidi-common.h | 2 +-
 lib/fribidi.h        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/fribidi-common.h b/lib/fribidi-common.h
index fb0442f..f9cd33b 100644
--- a/lib/fribidi-common.h
+++ b/lib/fribidi-common.h
@@ -43,7 +43,7 @@
 
 /* FRIBIDI_ENTRY is a macro used to declare library entry points. */
 #ifndef FRIBIDI_ENTRY
-#  define FRIBIDI_ENTRY		/* empty */
+#  define FRIBIDI_ENTRY extern
 #endif /* !FRIBIDI_ENTRY */
 
 #ifdef __ICC
diff --git a/lib/fribidi.h b/lib/fribidi.h
index a136ed0..c925bd5 100644
--- a/lib/fribidi.h
+++ b/lib/fribidi.h
@@ -53,7 +53,7 @@
 
 
 /* An string containing the version information of the library. */
-     extern const char *fribidi_version_info;
+FRIBIDI_ENTRY const char *fribidi_version_info;
 
 #include "fribidi-enddecls.h"
 
-- 
2.40.0