summaryrefslogtreecommitdiff
path: root/external/graphite/graphite2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'external/graphite/graphite2.patch')
-rw-r--r--external/graphite/graphite2.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/external/graphite/graphite2.patch b/external/graphite/graphite2.patch
new file mode 100644
index 000000000000..c7739ad441cb
--- /dev/null
+++ b/external/graphite/graphite2.patch
@@ -0,0 +1,29 @@
+--- misc/graphite2-1.2.0/include/graphite2/Types.h 2011-02-12 16:54:16.000000000 +0100
++++ misc/build/graphite2-1.2.0/include/graphite2/Types.h 2011-03-15 21:38:06.264788098 +0100
+@@ -41,7 +41,8 @@
+ };
+
+ // Definitions for library publicly exported symbols
+-#if defined _WIN32 || defined __CYGWIN__
++#define GR2_STATIC 1
++#if ( defined _WIN32 || defined __CYGWIN__ ) && !defined GR2_STATIC
+ #if defined GRAPHITE2_STATIC
+ #define GR2_API
+ #elif defined GRAPHITE2_EXPORTING
+--- misc/graphite2-1.2.0/src/inc/json.h
++++ misc/build/graphite2-1.2.0/src/inc/json.h
+@@ -146,6 +146,14 @@
+ inline
+ json & operator << (json & j, unsigned int d) throw() { return j << json::integer(d); }
+
++#if defined(_WIN64)
++inline
++json & operator << (json & j, __int64 d) throw() { return j << json::integer((unsigned int)d); }
++
++inline
++json & operator << (json & j, size_t d) throw() { return j << json::integer((unsigned int)d); }
++
++#endif
+ inline
+ json & operator << (json & j, char c) throw ()
+ {