[gobject-introspection/gnome-3-30] Ignore __pragma keyword used by MSVC
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection/gnome-3-30] Ignore __pragma keyword used by MSVC
- Date: Sun, 9 Dec 2018 08:02:50 +0000 (UTC)
commit d39a1a275111b930543d1922d53dca107cfc6dc2
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date: Sat Dec 8 00:00:00 2018 +0000
Ignore __pragma keyword used by MSVC
giscanner/scannerlexer.l | 1 +
1 file changed, 1 insertion(+)
---
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; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]