{$define D1}{define D2} {$ifdef D1 or $ifdef D2}//здесь {$endif}
{$define d1}{$define d2}{$if DEFINED(d1) or DEFINED(d2)} ...{$else} ...{$endif}