writer.h: use warning macros for MSVC