summaryrefslogtreecommitdiff
path: root/compiler/pmodules.pas
diff options
context:
space:
mode:
authorjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2015-01-21 23:28:34 +0000
committerjonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2>2015-01-21 23:28:34 +0000
commit1903b037de2fb3e75826406b46f055acb70963fa (patch)
tree604cd8b790fe14e5fbe441d4cd647c80d2a36a9a /compiler/pmodules.pas
parentad1141d52f8353457053b925cd674fe1d5c4eafc (diff)
parent953d907e4d6c3a5c2f8aaee6e5e4f73c55ce5985 (diff)
downloadfpc-blocks.tar.gz
* synchronised with trunk till r29513blocks
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/blocks@29516 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/pmodules.pas')
-rw-r--r--compiler/pmodules.pas5
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/pmodules.pas b/compiler/pmodules.pas
index 2556bc9d07..6faded7288 100644
--- a/compiler/pmodules.pas
+++ b/compiler/pmodules.pas
@@ -378,11 +378,10 @@ implementation
end;
{ CPU targets with microcontroller support can add a controller specific unit }
-{$if defined(ARM) or defined(AVR) or defined(MIPSEL)}
- if (target_info.system in systems_embedded) and (current_settings.controllertype<>ct_none) and
+ if ControllerSupport and (target_info.system in systems_embedded) and
+ (current_settings.controllertype<>ct_none) and
(embedded_controllers[current_settings.controllertype].controllerunitstr<>'') then
AddUnit(embedded_controllers[current_settings.controllertype].controllerunitstr);
-{$endif ARM AVR MIPSEL}
end;