Various changes for 16-bit compilation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-07-02 15:16:56 +00:00
parent ccd82cd130
commit 5260b1c582
12 changed files with 49 additions and 14 deletions

View File

@@ -87,10 +87,11 @@ unsigned char wxDataStream::Read8()
return (unsigned char)buf;
}
// Must be at global scope for VC++ 5
extern "C" double ConvertFromIeeeExtended(const unsigned char *bytes);
double wxDataStream::ReadDouble()
{
extern "C" double ConvertFromIeeeExtended(const unsigned char *bytes);
#if USE_APPLE_IEEE
char buf[10];
@@ -159,9 +160,11 @@ void wxDataStream::WriteLine(const wxString& line)
m_ostream->write((const char *) tmp_string, tmp_string.Length());
}
// Must be at global scope for VC++ 5
extern "C" void ConvertToIeeeExtended(double num, unsigned char *bytes);
void wxDataStream::WriteDouble(double d)
{
extern "C" void ConvertToIeeeExtended(double num, unsigned char *bytes)
char buf[10];
if (!m_ostream)