Yes, the is OK for me. I just tested it by using it to compile Code::Blocks core.
I had to add this 32-bit patch in addition to remove all the printf non-unicode warnings; Please verify the C++ Casting is correct. I am mainly a C programmer. Note: The items to be printf were all size_t datatypes.
Index: src/plugins/contrib/source_exporter/wxPdfDocument/src/pdfkernel.cpp
===================================================================
--- src/plugins/contrib/source_exporter/wxPdfDocument/src/pdfkernel.cpp (revision 7117)
+++ src/plugins/contrib/source_exporter/wxPdfDocument/src/pdfkernel.cpp (working copy)
@@ -1033,8 +1033,8 @@
}
NewObj();
- OutAscii(wxString(wxT("<<")) + filter + wxString(wxT("/Length ")) +
- wxString::Format(wxT("%ld"), CalculateStreamLength(p->TellO())) + wxString(wxT(">>")));
+ OutAscii(wxString(wxT("<<")) + filter + wxString(wxT("/Length ")) +
+ wxString::Format(wxT("%lu"), static_cast<unsigned long>(CalculateStreamLength(p->TellO()))) + wxString(wxT(">>")));
PutStream(*p);
Out("endobj");
if (m_compress)
@@ -1202,7 +1202,7 @@
Out("/Decode[0 1 0 1 0 1 0 1 0 1]");
Out("/BitsPerFlag 8");
wxMemoryOutputStream* p = grad->GetBuffer();
- OutAscii(wxString::Format(wxT("/Length %ld"), CalculateStreamLength(p->TellO())));
+ OutAscii(wxString::Format(wxT("/Length %lu"), static_cast<unsigned long>(CalculateStreamLength(p->TellO()))));
Out(">>");
PutStream(*p);
Out("endobj");
@@ -1372,7 +1372,7 @@
wxMemoryOutputStream* p = new wxMemoryOutputStream();
/* size_t mapSize = */ font->WriteUnicodeMap(p);
size_t mapLen = CalculateStreamLength(p->TellO());
- OutAscii(wxString::Format(wxT("<</Length %ld"), mapLen));
+ OutAscii(wxString::Format(wxT("<</Length %lu"), static_cast<unsigned long>(mapLen)));
Out("/Filter /FlateDecode");
Out(">>");
PutStream(*p);
@@ -1477,7 +1477,7 @@
wxMemoryOutputStream* p = new wxMemoryOutputStream();
/* size_t mapSize = */ font->WriteUnicodeMap(p);
size_t mapLen = CalculateStreamLength(p->TellO());
- OutAscii(wxString::Format(wxT("<</Length %ld"), mapLen));
+ OutAscii(wxString::Format(wxT("<</Length %lu"), static_cast<unsigned long>(mapLen)));
if (compressed)
{
// Decompresses data encoded using the public-domain zlib/deflate compression
@@ -1770,7 +1770,7 @@
p = &(currentTemplate->m_buffer);
}
- OutAscii(wxString::Format(wxT("/Length %ld >>"), CalculateStreamLength(p->TellO())));
+ OutAscii(wxString::Format(wxT("/Length %lu >>"), static_cast<unsigned long>(CalculateStreamLength(p->TellO()))));
PutStream(*p);
Out("endobj");
if (m_compress)
@@ -2085,7 +2085,7 @@
wxString::Format(wxT("/I%d Do Q"), image->GetIndex());
wxMemoryOutputStream* p = new wxMemoryOutputStream;
p->Write(sdata.ToAscii(), sdata.Length());
- OutAscii(wxString(wxT("/Length ")) + wxString::Format(wxT("%ld"), CalculateStreamLength(p->TellO())));
+ OutAscii(wxString(wxT("/Length ")) + wxString::Format(wxT("%lu"), static_cast<unsigned long>(CalculateStreamLength(p->TellO()))));
Out(">>");
PutStream(*p);
delete p;
Tim S.