diff --git a/components/tachart/tachartcombos.pas b/components/tachart/tachartcombos.pas
index 858dbb442a..2a80053be2 100644
--- a/components/tachart/tachartcombos.pas
+++ b/components/tachart/tachartcombos.pas
@@ -1,5 +1,7 @@
 unit TAChartCombos;
 
+{$mode ObjFPC}{$H+}
+
 interface
 
 uses
diff --git a/components/tachart/tachartlazaruspkg.lpk b/components/tachart/tachartlazaruspkg.lpk
index 8bd0efd780..c4b58961f9 100644
--- a/components/tachart/tachartlazaruspkg.lpk
+++ b/components/tachart/tachartlazaruspkg.lpk
@@ -13,11 +13,6 @@
         <OtherUnitFiles Value="numlib_fix;editors"/>
         <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)\$(LCLWidgetType)"/>
       </SearchPaths>
-      <Parsing>
-        <SyntaxOptions>
-          <UseAnsiStrings Value="False"/>
-        </SyntaxOptions>
-      </Parsing>
       <CodeGeneration>
         <Checks>
           <RangeChecks Value="True"/>
diff --git a/components/tachart/tafonts.pas b/components/tachart/tafonts.pas
index aec80b79ed..eae1e5aff8 100644
--- a/components/tachart/tafonts.pas
+++ b/components/tachart/tafonts.pas
@@ -14,6 +14,8 @@
 
 unit TAFonts;
 
+{$mode objfpc}{$H+}
+
 interface
 
 uses