File fix-windows-x86_64-build.patch of Package mingw64-opensp
--- a/lib/OutputCharStream.cxx 2016-10-24 14:45:32.971097071 +0000
+++ b/lib/OutputCharStream.cxx 2016-10-24 14:48:19.327861506 +0000
@@ -61,6 +61,13 @@
return *this << buf;
}
+OutputCharStream &OutputCharStream::operator<<(long long unsigned int n)
+{
+ char buf[sizeof(long long unsigned int)*3 + 1];
+ sprintf(buf, "%llu", n);
+ return *this << buf;
+}
+
OutputCharStream &OutputCharStream::operator<<(int n)
{
char buf[sizeof(int)*3 + 2];
--- a/lib/MessageReporter.cxx 2016-10-24 14:30:14.456436396 +0000
+++ b/lib/MessageReporter.cxx 2016-10-24 14:49:51.393535576 +0000
@@ -123,7 +123,7 @@
os() << ':';
}
if (options_ & messageNumbers)
- os() << (unsigned long)message.type->module() << "."
+ os() << ((long long unsigned int)message.type->module()) << "."
<< (unsigned long)message.type->number() << ":";
switch (message.type->severity()) {
case MessageType::info:
--- a/include/OutputCharStream.h 2016-10-24 14:43:45.115785510 +0000
+++ b/include/OutputCharStream.h 2016-10-24 14:47:49.759995245 +0000
@@ -31,6 +31,7 @@
OutputCharStream &operator<<(const char *);
OutputCharStream &operator<<(const StringC &);
OutputCharStream &operator<<(unsigned long);
+ OutputCharStream &operator<<(long long unsigned int);
OutputCharStream &operator<<(int);
OutputCharStream &operator<<(Newline);
private: