]> git.saurik.com Git - wxWidgets.git/commitdiff
correcting #ifdef syntax error
authorJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 17 Mar 2009 11:05:25 +0000 (11:05 +0000)
committerJouk Jansen <joukj@hrem.nano.tudelft.nl>
Tue, 17 Mar 2009 11:05:25 +0000 (11:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/docview/docview.cpp

index c3faa822f0ac6e9c10bf1f5d03828a094efa9a2b..19503d7e4a8e91a0c43798b567978aceb18f45a9 100644 (file)
@@ -157,7 +157,7 @@ bool MyApp::OnInit()
     new wxDocTemplate(docManager, "Drawing", "*.drw", "", "drw",
                       "Drawing Doc", "Drawing View",
                       CLASSINFO(DrawingDocument), CLASSINFO(DrawingView));
-#ifdef __WXMAC__ && wxOSX_USE_CARBON
+#if defined __WXMAC__ )  && defined( 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));
-#ifdef __WXMAC__ && wxOSX_USE_CARBON
+#if defined __WXMAC__ )  && defined( wxOSX_USE_CARBON )
         wxFileName::MacRegisterDefaultTypeAndCreator("txt" , 'TEXT' , 'WXMA');
 #endif
     }