diff options
author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-12-08 00:00:00 +0000 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-09 09:01:23 +0100 |
commit | d39a1a275111b930543d1922d53dca107cfc6dc2 (patch) | |
tree | 9a39d07055e1fe4d68b552cc14652e46be020574 | |
parent | 26f17fa4970618375430784819daf3189661386b (diff) | |
download | gobject-introspection-d39a1a275111b930543d1922d53dca107cfc6dc2.tar.gz |
Ignore __pragma keyword used by MSVC
-rw-r--r-- | giscanner/scannerlexer.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/scannerlexer.l b/giscanner/scannerlexer.l index 971b3a73..543edb30 100644 --- a/giscanner/scannerlexer.l +++ b/giscanner/scannerlexer.l @@ -173,6 +173,7 @@ stringtext ([^\\\"])|(\\.) "_Nullable" { /* Ignore */ } "_Null_unspecified" { /* Ignore */ } "_Noreturn" { /* Ignore */ } +"__pragma" { if (!parse_ignored_macro()) REJECT; } "__restrict" { return RESTRICT; } "__restrict__" { return RESTRICT; } "thread_local" { return THREAD_LOCAL; } |