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
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
}