From 07ac64bf095475a227b8deba7bcf9a9dadee1222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A1roly=20Balogh?= Date: Thu, 28 Dec 2017 19:03:53 +0000 Subject: [PATCH] * no longer allow to compile objcbase without the objc1 feature enabled. git-svn-id: trunk@37847 - --- rtl/inc/objcbase.pp | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/rtl/inc/objcbase.pp b/rtl/inc/objcbase.pp index 92641af1b5..8c7ff77be2 100644 --- a/rtl/inc/objcbase.pp +++ b/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. - -