Skip to content

Commit

Permalink
git commit the __attribute__ pragma is only for GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
krangelov committed Apr 11, 2024
1 parent 2f7c65c commit 8827221
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/runtime/c/pgf/typechecker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8827221

Please sign in to comment.