cairo2 doesn't compile on Windows / Diskuv / MSVC.
The preprocessor doesn't seem to support the vararg notation (args ...)
# C:\Users\frede\AppData\Local\opam\playground\.opam-switch\build\cairo2.0.6.2\_build\default\src\cairo_macros.h(178): error C2010: '.' : inattendu dans la liste de paramètres de macro
# cairo_stubs.c(1615): error C2010: '.' : inattendu dans la liste de paramètres de macro
cairo2 doesn't compile on Windows / Diskuv / MSVC.
The preprocessor doesn't seem to support the vararg notation (
args ...
)The 178th line of cairo_macros.h is
(inatendu means unexpected)
MSVC expect varargs writen as simply
...
and the content is put in the__VA_ARGS__
token. See https://learn.microsoft.com/en-us/cpp/preprocessor/variadic-macros?view=msvc-170 these approch is compatible with gcc.