summaryrefslogtreecommitdiff
path: root/freetype
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-05-17 16:53:17 +0100
committerChris Liddell <chris.liddell@artifex.com>2022-06-01 09:28:13 +0100
commit64bffc6bdff1d5048442659d7b1bcca9b0f715ec (patch)
treec50b4b98c02e857ff5603dd6aca82f4b31783293 /freetype
parentb7e6921869f9826f596ac1298b62671cf0381f6e (diff)
downloadghostpdl-64bffc6bdff1d5048442659d7b1bcca9b0f715ec.tar.gz
Make FT_EXPORT and FT_EXPORT_DEF definitions conditional
This is required so we can use our own definitions, and hide the Freetype symbols inside our .so build.
Diffstat (limited to 'freetype')
-rw-r--r--freetype/include/freetype/config/public-macros.h3
-rw-r--r--freetype/include/freetype/internal/compiler-macros.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/freetype/include/freetype/config/public-macros.h b/freetype/include/freetype/config/public-macros.h
index 0074134f1..273972d18 100644
--- a/freetype/include/freetype/config/public-macros.h
+++ b/freetype/include/freetype/config/public-macros.h
@@ -101,8 +101,9 @@ FT_BEGIN_HEADER
* functions are exported with C linkage, even when the header is included
* by a C++ source file.
*/
+#ifndef FT_EXPORT
#define FT_EXPORT( x ) FT_PUBLIC_FUNCTION_ATTRIBUTE extern x
-
+#endif
/*
* `FT_UNUSED` indicates that a given parameter is not used -- this is
diff --git a/freetype/include/freetype/internal/compiler-macros.h b/freetype/include/freetype/internal/compiler-macros.h
index 66fa13c3c..4c3b2ffe5 100644
--- a/freetype/include/freetype/internal/compiler-macros.h
+++ b/freetype/include/freetype/internal/compiler-macros.h
@@ -259,7 +259,9 @@ FT_BEGIN_HEADER
*/
/* See `freetype/config/compiler_macros.h` for the `FT_EXPORT` definition */
+#ifndef FT_EXPORT_DEF
#define FT_EXPORT_DEF( x ) FT_FUNCTION_DEFINITION( x )
+#endif
/*
* The following macros are needed to compile the library with a