From cf3c9916a4eb3f92b96ed01d1436091bbc8450c2 Mon Sep 17 00:00:00 2001 From: sekelsenmat Date: Sat, 12 Apr 2008 00:53:44 +0000 Subject: [PATCH] Blocks the compilation of lcl-wince in the arm architecture with FPC <= 2.2.0 to avoid mistakes of the users. git-svn-id: trunk@14805 - --- lcl/interfaces/wince/winceint.pp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lcl/interfaces/wince/winceint.pp b/lcl/interfaces/wince/winceint.pp index 8673602ce0..eb4a504589 100644 --- a/lcl/interfaces/wince/winceint.pp +++ b/lcl/interfaces/wince/winceint.pp @@ -28,6 +28,14 @@ unit WinCEInt; Interface +{ At least FPC 2.2.1 is required if the architecture is ARM + FPC 2.0 or inferior isn't checked because it can't compile for wince } +{$ifdef CPUARM} + {$if defined(ver2_2) and (fpc_patch<1)} + {$fatal The Lazarus WinCE Interface in Lazarus 0.9.25+ requires at least FPC 2.2.1} + {$endif} +{$endif} + {$IFDEF Trace} {$ASSERTIONS ON} {$ENDIF}