]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/mimetmac.cpp
Applied patch [ 1163322 ] Patch to prevent MDI app from opening the same file twice
[wxWidgets.git] / src / mac / carbon / mimetmac.cpp
index ff6ef1d39f9eaaff497b4c47cd06c158d86447ce..8231b601a130fe276380a1dc40facea2252337c0 100644 (file)
@@ -6,10 +6,10 @@
 // Created:     23.09.98
 // RCS-ID:      $Id$
 // Copyright:   (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence:     wxWidgets licence (part of wxExtra library)
+// Licence:     wxWindows licence (part of wxExtra library)
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef    __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "mimetype.h"
 #endif
 
   #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-  #include "wx/defs.h"
-#endif
-
 #ifndef WX_PRECOMP
   #include "wx/string.h"
   #if wxUSE_GUI
@@ -32,6 +28,8 @@
 #endif //WX_PRECOMP
 
 
+#if wxUSE_MIMETYPE
+
 #include "wx/log.h"
 #include "wx/file.h"
 #include "wx/intl.h"
@@ -226,3 +224,4 @@ wxMimeTypesManagerImpl::Unassociate(wxFileType *ft)
     return FALSE;
 }
 
+#endif //wxUSE_MIMETYPE
\ No newline at end of file