Mac fixes (thanks to Stefan Csomor)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -45,8 +45,6 @@ const wxTextFile::Type wxTextFile::typeDefault = wxTextFile::
|
|||||||
Type_Unix;
|
Type_Unix;
|
||||||
#elif defined(__WXMAC__)
|
#elif defined(__WXMAC__)
|
||||||
Type_Mac;
|
Type_Mac;
|
||||||
// if you feel brave, remove the next line
|
|
||||||
#error "wxTextFile: code for Mac files is untested."
|
|
||||||
#else
|
#else
|
||||||
Type_None;
|
Type_None;
|
||||||
#error "wxTextFile: unsupported platform."
|
#error "wxTextFile: unsupported platform."
|
||||||
@@ -170,10 +168,6 @@ bool wxTextFile::Read()
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __MAC__
|
|
||||||
#pragma message("wxTextFile::Read() hasn't been tested with Mac files.")
|
|
||||||
#endif
|
|
||||||
|
|
||||||
for ( n = 0; n < nRead; n++ ) {
|
for ( n = 0; n < nRead; n++ ) {
|
||||||
ch = buf[n];
|
ch = buf[n];
|
||||||
switch ( ch ) {
|
switch ( ch ) {
|
||||||
@@ -200,6 +194,7 @@ bool wxTextFile::Read()
|
|||||||
// Mac line termination
|
// Mac line termination
|
||||||
m_aLines.Add(str);
|
m_aLines.Add(str);
|
||||||
m_aTypes.Add(Type_Mac);
|
m_aTypes.Add(Type_Mac);
|
||||||
|
chLast = ch;
|
||||||
str = ch;
|
str = ch;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user