Delphi conditional compilation in uses clause
问题 I am trying to modify my Delphi 2010 code to compile in XE7 (and want to retain the ability to compile it in 2010). So in the unit that houses my mainform I added conditional directives. The following works fine in 2010 uses {$IF CompilerVersion >= 24}System.Actions, {$ELSE}Actnlist,{$IFEND} Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs; But XE7 automatically adds a System.Actions at the end to create a uses clause that now has System.Actions declared twice (see