X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18c45cd6dc74b8c37bf6e0c920cd010d3b77135b..5cf1cb1006d6b5762d96c07ee3892883607460c7:/contrib/src/deprecated/resource.cpp diff --git a/contrib/src/deprecated/resource.cpp b/contrib/src/deprecated/resource.cpp index a39d2202b4..e3117e7c45 100644 --- a/contrib/src/deprecated/resource.cpp +++ b/contrib/src/deprecated/resource.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "resource.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -1624,7 +1620,7 @@ static bool wxEatWhiteSpace(wxInputStream *is) while (!finished) { ch = is->GetC(); - if (ch == EOF) + if (is->LastRead() == 0) return false; if (ch == '*') { @@ -1733,7 +1729,7 @@ bool wxGetResourceToken(wxInputStream *is) // Escaped characters else if (ch == '\\') { - int newCh = is->GetC(); + char newCh = is->GetC(); if (newCh == '"') actualCh = '"'; else if (newCh == 10)