]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/file.cpp
1. wxDialogs are now destroyed when they go out of scope
[wxWidgets.git] / src / common / file.cpp
index 07c0f058fa2595d43273976d0a076a9100c5fc91..6702d2dd83457937159dc1c4dde1feabcbbaedd6 100644 (file)
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
-#include "wx/defs.h"
 
 #ifdef __BORLANDC__
-    #pragma hdrstop
+  #pragma hdrstop
 #endif
 
+#ifndef WX_PRECOMP
+  #include "wx/defs.h"
+#endif
+
+#if wxUSE_FILE
+
 // standard
 #if defined(__WXMSW__) && !defined(__GNUWIN32__) && !defined(__WXWINE__)
   #include  <io.h>
@@ -573,3 +578,5 @@ void wxTempFile::Discard()
     if ( remove(m_strTemp.fn_str()) != 0 )
         wxLogSysError(_("can't remove temporary file '%s'"), m_strTemp.c_str());
 }
+
+#endif
\ No newline at end of file