Browse Source

* no longer allow to compile objcbase without the objc1 feature enabled.

git-svn-id: trunk@37847 -
Károly Balogh 7 years ago
parent
commit
07ac64bf09
1 changed files with 5 additions and 13 deletions
  1. 5 13
      rtl/inc/objcbase.pp

+ 5 - 13
rtl/inc/objcbase.pp

@@ -15,13 +15,15 @@
 
 unit objcbase;
 
-{$ifdef FPC_HAS_FEATURE_OBJECTIVEC1}
+interface
+
+{$ifndef FPC_HAS_FEATURE_OBJECTIVEC1}
+{$error ObjectiveC1 feature is not supported or not enabled.}
+{$endif}
 
 {$modeswitch objectivec1}
 {$packrecords c}
 
-interface
-
 uses
   ctypes;
 
@@ -255,14 +257,4 @@ type
 
 implementation
 
-{$else }
-
-interface
-
-implementation
-
-{$endif}
-
 end.
-
-