]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ffile.cpp
Compile fixes.
[wxWidgets.git] / src / common / ffile.cpp
index 69d1c04af8d5db3718a2135dc0072ba1f91caba4..f880a43134e3b1ec8f0c3f31ff0aa3c18f0f8679 100644 (file)
@@ -31,6 +31,8 @@
 #if wxUSE_FILE
 
 #ifndef WX_PRECOMP
+    #include "wx/intl.h"
+    #include "wx/log.h"
 #endif
 
 #include "wx/ffile.h"
@@ -72,7 +74,7 @@ bool wxFFile::Close()
 {
     if ( IsOpened() )
     {
-        if ( !fclose(m_fp) )
+        if ( fclose(m_fp) != 0 )
         {
             wxLogSysError(_("can't close file '%s'"), m_name.c_str());