Explorar o código

add compiler flags

Chengming Liao %!s(int64=7) %!d(string=hai) anos
pai
achega
129c91c876

+ 4 - 1
Classes/GlobalStateExplorers/DatabaseBrowser/FLEXMultiColumnTableView.m

@@ -52,10 +52,13 @@ static const CGFloat kColumnMargin = 1;
     CGFloat topheaderHeight = [self topHeaderHeight];
     CGFloat leftHeaderWidth = [self leftHeaderWidth];
     CGFloat topInsets = 0.f;
-    
+
+    #if FLEX_AT_LEAST_IOS11_SDK
     if (@available (iOS 11.0, *)) {
         topInsets = self.safeAreaInsets.top;
     }
+    #endif
+    
     CGFloat contentWidth = 0.0;
     NSInteger rowsCount = [self numberOfColumns];
     for (int i = 0; i < rowsCount; i++) {