1
0
forked from GitHub/gf-core

git commit the __attribute__ pragma is only for GCC

This commit is contained in:
Krasimir Angelov
2024-04-11 10:56:59 +02:00
parent 2f7c65c207
commit 8827221493

View File

@@ -101,7 +101,10 @@ class PGF_INTERNAL_DECL PgfTypechecker {
};
PgfDBMarshaller db_m;
bool type_error(const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
bool type_error(const char *fmt, ...)
#ifdef __GNUC__
__attribute__ ((format (printf, 2, 3)));
#endif
public:
PgfTypechecker(ref<PgfPGF> gr, PgfMarshaller *m, PgfUnmarshaller *u, PgfExn* err);