Added if defined for legacy constants