File graphite2-1.2.1-win64.patch of Package mingw64-libgraphite2

--- graphite2-1.2.1/src/inc/json.h	2013-02-27 20:32:04.000000000 +0100
+++ graphite2-1.2.1/src/inc/json.h	2013-05-09 22:21:49.004998066 +0200
@@ -79,6 +79,10 @@
 	json & operator << (number) throw();
 	json & operator << (integer) throw();
 	json & operator << (long unsigned int d) throw();
+#ifdef _WIN32
+	json & operator << (unsigned __int64 d) throw();
+	json & operator << (__int64 d) throw();
+#endif
 	json & operator << (boolean) throw();
 	json & operator << (_null_t) throw();
 	json & operator << (_context_t) throw();
--- graphite2-1.2.1/src/json.cpp	2013-02-27 20:32:04.000000000 +0100
+++ graphite2-1.2.1/src/json.cpp	2013-05-09 22:24:25.537924808 +0200
@@ -119,6 +119,10 @@
 json & json::operator << (json::number f) throw()	{ context(seq); fprintf(_stream, "%g", f); return *this; }
 json & json::operator << (json::integer d) throw()	{ context(seq); fprintf(_stream, "%ld", d); return *this; }
 json & json::operator << (long unsigned d) throw()	{ context(seq); fprintf(_stream, "%ld", d); return *this; }
+#ifdef _WIN32
+json & json::operator << (unsigned __int64 d) throw()	{ context(seq); fprintf(_stream, "%I64", d); return *this; }
+json & json::operator << (__int64 d) throw()	{ context(seq); fprintf(_stream, "%I64", d); return *this; }
+#endif
 json & json::operator << (json::boolean b) throw()	{ context(seq); fputs(b ? "true" : "false", _stream); return *this; }
 json & json::operator << (json::_null_t) throw()	{ context(seq); fputs("null",_stream); return *this; }
 
openSUSE Build Service is sponsored by