summarylogtreecommitdiffstats
path: root/001-graphite2-1.3.8-win64.patch
blob: cd00c3d6e4cd34a89e08cf9e1787ebbf685446df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- graphite2-1.3.8/src/inc/json.h.orig	2016-04-01 03:31:38.543833400 -0400
+++ graphite2-1.3.8/src/inc/json.h	2016-04-01 03:38:38.112543400 -0400
@@ -86,6 +86,10 @@ public:
     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.3.8/src/json.cpp.orig	2016-04-01 03:31:38.550833700 -0400
+++ graphite2-1.3.8/src/json.cpp	2016-04-01 03:41:05.363588200 -0400
@@ -133,6 +133,10 @@ json & json::operator << (json::number f
 }
 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; }