diff options
Diffstat (limited to 'pre-process.c')
-rw-r--r-- | pre-process.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pre-process.c b/pre-process.c index ca92ff06..7b245a04 100644 --- a/pre-process.c +++ b/pre-process.c @@ -1434,6 +1434,14 @@ void predefine(const char *name, int weak, const char *fmt, ...) do_define(value->pos, NULL, ident, NULL, value, attr); } +/// +// like predefine() but only if one of the non-standard dialect is chosen +void predefine_nostd(const char *name) +{ + if ((standard & STANDARD_GNU) || (standard == STANDARD_NONE)) + predefine(name, 1, "1"); +} + static int do_handle_define(struct stream *stream, struct token **line, struct token *token, int attr) { struct token *arglist, *expansion; |