replace deprecation pragmas with macro (followup 5134ef9a)