X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/78500b7db1287068a04469e1ce92b4fe99e4e4f0..4e5a4c69c540b430fba8efe5dae1bc1ffd5caeca:/src/common/fileconf.cpp?ds=sidebyside diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index ac24da740d..45ea8251d0 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -50,10 +50,8 @@ #include "wx/mac/private.h" // includes mac headers #endif -// _WINDOWS_ is defined when windows.h is included, -// __WXMSW__ is defined for MS Windows compilation -#if defined(__WXMSW__) && !defined(_WINDOWS_) - #include +#if defined(__WXMSW__) + #include "wx/msw/private.h" #endif //windows.h #if defined(__WXPM__) #define INCL_DOS @@ -844,8 +842,7 @@ bool wxFileConfig::DoReadLong(const wxString& key, long *pl) const { return FALSE; } - str.ToLong(pl) ; - return TRUE ; + return str.ToLong(pl) ; } bool wxFileConfig::DoWriteString(const wxString& key, const wxString& szValue)