]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/iphone/toolbar.mm
Fix VC++ compile error
[wxWidgets.git] / src / osx / iphone / toolbar.mm
index e77c140fd3b96eca96c6a90ff5647812d75e000f..4892a57e826cb131240917f2f1739e3a5db08e0d 100644 (file)
@@ -227,6 +227,7 @@ bool wxToolBar::Create(
     
     switch ( [[UIApplication sharedApplication] statusBarStyle] ) 
     {
+#ifdef __IPHONE_3_0
         case UIStatusBarStyleBlackOpaque:
             toolbar.barStyle = UIBarStyleBlack;
             break;
@@ -234,6 +235,7 @@ bool wxToolBar::Create(
             toolbar.barStyle = UIBarStyleBlack;
             toolbar.translucent = YES;
             break;
+#endif
         default:
             toolbar.barStyle = UIBarStyleDefault;
             break;