1 diff --git a/gfx/ots/include/opentype-sanitiser.h b/gfx/ots/include/opentype-sanitiser.h
2 --- a/gfx/ots/include/opentype-sanitiser.h
3 +++ b/gfx/ots/include/opentype-sanitiser.h
6 #ifndef OPENTYPE_SANITISER_H_
7 #define OPENTYPE_SANITISER_H_
9 +#if defined(_WIN32) || defined(__CYGWIN__)
10 + #define OTS_DLL_IMPORT __declspec(dllimport)
11 + #define OTS_DLL_EXPORT __declspec(dllexport)
14 + #define OTS_DLL_IMPORT __attribute__((visibility ("default")))
15 + #define OTS_DLL_EXPORT __attribute__((visibility ("default")))
20 + #ifdef OTS_DLL_EXPORTS
21 + #define OTS_API OTS_DLL_EXPORT
23 + #define OTS_API OTS_DLL_IMPORT
31 typedef signed char int8_t;
32 typedef unsigned char uint8_t;
33 @@ -164,9 +184,9 @@ enum TableAction {
34 TABLE_ACTION_PASSTHRU, // Serialize the table unchanged
35 TABLE_ACTION_DROP // Drop the table
39 +class OTS_API OTSContext {
42 virtual ~OTSContext() {}