Wrap package declaration with if defined