summaryrefslogtreecommitdiffstats
path: root/gfx/ots/ots-visibility.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /gfx/ots/ots-visibility.patch
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/ots/ots-visibility.patch')
-rw-r--r--gfx/ots/ots-visibility.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/gfx/ots/ots-visibility.patch b/gfx/ots/ots-visibility.patch
new file mode 100644
index 0000000000..e9332de7d7
--- /dev/null
+++ b/gfx/ots/ots-visibility.patch
@@ -0,0 +1,43 @@
+diff --git a/include/opentype-sanitiser.h b/include/opentype-sanitiser.h
+--- a/include/opentype-sanitiser.h
++++ b/include/opentype-sanitiser.h
+@@ -4,8 +4,28 @@
+
+ #ifndef OPENTYPE_SANITISER_H_
+ #define OPENTYPE_SANITISER_H_
+
++#if defined(_WIN32) || defined(__CYGWIN__)
++ #define OTS_DLL_IMPORT __declspec(dllimport)
++ #define OTS_DLL_EXPORT __declspec(dllexport)
++#else
++ #if __GNUC__ >= 4
++ #define OTS_DLL_IMPORT __attribute__((visibility ("default")))
++ #define OTS_DLL_EXPORT __attribute__((visibility ("default")))
++ #endif
++#endif
++
++#ifdef OTS_DLL
++ #ifdef OTS_DLL_EXPORTS
++ #define OTS_API OTS_DLL_EXPORT
++ #else
++ #define OTS_API OTS_DLL_IMPORT
++ #endif
++#else
++ #define OTS_API
++#endif
++
+ #if defined(_WIN32)
+ #include <stdlib.h>
+ typedef signed char int8_t;
+ typedef unsigned char uint8_t;
+@@ -164,9 +184,9 @@ enum TableAction {
+ TABLE_ACTION_PASSTHRU, // Serialize the table unchanged
+ TABLE_ACTION_DROP // Drop the table
+ };
+
+-class OTSContext {
++class OTS_API OTSContext {
+ public:
+ OTSContext() {}
+ virtual ~OTSContext() {}
+