X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7002c07c86fa2a0f0c8a6062210bbb5c3371ceb6..0472ece753aa3c018dd2cc9816d3cd755f28efe8:/src/common/fileconf.cpp?ds=sidebyside diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index b6f357dc6e..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; } - *pl = str.ToLong(pl) ; - return TRUE ; + return str.ToLong(pl) ; } bool wxFileConfig::DoWriteString(const wxString& key, const wxString& szValue)