]> granicus.if.org Git - fribidi/commitdiff
lib: decorate fribidi_version_info with FRIBIDI_ENTRY
authorTim-Philipp Müller <tim@centricular.com>
Sat, 17 Feb 2018 21:25:51 +0000 (21:25 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 19 Feb 2018 20:01:03 +0000 (20:01 +0000)
... 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
lib/fribidi.h

index fb0442fdb1624ebe6b7af1dbb3734da76bc74483..f9cd33be1bbc88a11edaecf70d98ec2df35a42c2 100644 (file)
@@ -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
index a136ed088afcd5fb704097eb9065eab423d65c27..c925bd594be1acd4b4ff94bb35151b7dd1936372 100644 (file)
@@ -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"