Browse Source

* fix compilation on non avr/arm architectures

git-svn-id: trunk@22093 -
florian 13 years ago
parent
commit
b8ab3d48f6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      compiler/options.pas

+ 4 - 2
compiler/options.pas

@@ -2686,7 +2686,9 @@ var
   env: ansistring;
   env: ansistring;
   i : tfeature;
   i : tfeature;
   abi : tabi;
   abi : tabi;
+{$if defined(arm) or defined(avr)}
   cpuflag : tcpuflags;
   cpuflag : tcpuflags;
+{$endif defined(arm) or defined(avr)}
   hs : string;
   hs : string;
 begin
 begin
   option:=coption.create;
   option:=coption.create;
@@ -3212,7 +3214,7 @@ if (target_info.abi = abi_eabihf) then
 
 
   def_system_macro('FPU'+fputypestr[init_settings.fputype]);
   def_system_macro('FPU'+fputypestr[init_settings.fputype]);
 
 
-  {$if defined(arm) or defined(avr)}
+{$if defined(arm) or defined(avr)}
   for cpuflag:=low(cpuflag) to high(cpuflag) do
   for cpuflag:=low(cpuflag) to high(cpuflag) do
     begin
     begin
       str(cpuflag,hs);
       str(cpuflag,hs);
@@ -3221,7 +3223,7 @@ if (target_info.abi = abi_eabihf) then
       else
       else
         undef_system_macro(hs);
         undef_system_macro(hs);
     end;
     end;
-  {$endif defined(arm) or defined(avr)}
+{$endif defined(arm) or defined(avr)}
 
 
   if init_settings.fputype<>fpu_none then
   if init_settings.fputype<>fpu_none then
     begin
     begin