2012-05-23 19:59:26 +04:00
|
|
|
diff --git a/gfx/ots/include/opentype-sanitiser.h b/gfx/ots/include/opentype-sanitiser.h
|
|
|
|
--- a/gfx/ots/include/opentype-sanitiser.h
|
|
|
|
+++ b/gfx/ots/include/opentype-sanitiser.h
|
2018-07-24 23:09:00 +03:00
|
|
|
@@ -4,8 +4,28 @@
|
|
|
|
|
2012-05-23 19:59:26 +04:00
|
|
|
#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;
|
2018-07-24 23:09:00 +03:00
|
|
|
typedef unsigned char uint8_t;
|
|
|
|
@@ -164,9 +184,9 @@ enum TableAction {
|
|
|
|
TABLE_ACTION_PASSTHRU, // Serialize the table unchanged
|
2014-08-23 18:12:00 +04:00
|
|
|
TABLE_ACTION_DROP // Drop the table
|
|
|
|
};
|
2014-01-31 19:09:09 +04:00
|
|
|
|
2014-06-05 19:09:00 +04:00
|
|
|
-class OTSContext {
|
|
|
|
+class OTS_API OTSContext {
|
|
|
|
public:
|
2014-08-23 18:12:00 +04:00
|
|
|
OTSContext() {}
|
2014-11-17 18:24:05 +03:00
|
|
|
virtual ~OTSContext() {}
|
2018-07-24 23:09:00 +03:00
|
|
|
|