Browse Source

Fix ANSI compilation.

Martijn Laan 11 years ago
parent
commit
f7d13b1c34
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Projects/ScriptCompiler.pas

+ 2 - 0
Projects/ScriptCompiler.pas

@@ -353,7 +353,9 @@ begin
     PSPascalCompiler.AllowNoBegin := True;
     PSPascalCompiler.AllowNoEnd := True;
     PSPascalCompiler.BooleanShortCircuit := True;
+{$IFDEF UNICODE}
     PSPascalCompiler.AllowDuplicateRegister := False;
+{$ENDIF}
 
     PSPascalCompiler.OnUses := PSPascalCompilerOnUses;
     PSPascalCompiler.OnExportCheck := PSPascalCompilerOnExportCheck;