]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing osx_carbon guard
authorStefan Csomor <csomor@advancedconcepts.ch>
Wed, 6 May 2009 15:41:41 +0000 (15:41 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Wed, 6 May 2009 15:41:41 +0000 (15:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/docview/docview.cpp

index 69d22c48a46d4a663a4b702401b6e5bc895a9272..b3332a6f5596da267c24e9996361ffc835153d2f 100644 (file)
@@ -157,7 +157,7 @@ bool MyApp::OnInit()
     new wxDocTemplate(docManager, "Drawing", "*.drw", "", "drw",
                       "Drawing Doc", "Drawing View",
                       CLASSINFO(DrawingDocument), CLASSINFO(DrawingView));
-#if defined( __WXMAC__ )  && defined( wxOSX_USE_CARBON )
+#if defined( __WXMAC__ )  && wxOSX_USE_CARBON
     wxFileName::MacRegisterDefaultTypeAndCreator("drw" , 'WXMB' , 'WXMA');
 #endif
 
@@ -173,7 +173,7 @@ bool MyApp::OnInit()
         new wxDocTemplate(docManager, "Text", "*.txt;*.text", "", "txt;text",
                           "Text Doc", "Text View",
                           CLASSINFO(TextEditDocument), CLASSINFO(TextEditView));
-#if defined( __WXMAC__ )  && defined( wxOSX_USE_CARBON )
+#if defined( __WXMAC__ ) && wxOSX_USE_CARBON
         wxFileName::MacRegisterDefaultTypeAndCreator("txt" , 'TEXT' , 'WXMA');
 #endif
     }