Closed stloeffler closed 1 year ago
They are. I defined a new macro ATTRIBUTE_FORMAT_PRINTF
(in synctex_parser_utils.h) which is empty (a no-op) if _MSC_VER
is defined, and otherwise evaluates to the __attribute__
code (which works on both gcc and clang). This way, one doesn't litter the code with MSVC-specific #ifdef
statements and retains the possibility to easily adapt (e.g., if MSVC gets a similar ability in the future; or if other compilers need special handling)
I prefixed the macro with SYNCTEX_ to let people (from the GCC/CLANG world) know that this is not an official macro, hope I did not make any mistake.
which does not understand attribute((format(...)))