diff mbox

[3/4] V2 Adding _Pragma()

Message ID CANeU7Q=h1AyTxvn58zC6z3iZvShd6Uv++obWoO86o7V+iqRWPw@mail.gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Christopher Li July 18, 2017, 2:55 a.m. UTC
This will make the selfcheck target reduce a lot of error on
test-inspect.c.  The gtk header file use _Pragma().

Signed-off-by: Christopher Li <sparse@chrisli.org>
---
 lib.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/lib.c b/lib.c
index de63504..ce66a81 100644
--- a/lib.c
+++ b/lib.c
@@ -1156,6 +1156,7 @@  void create_builtin_stream(void)

  add_pre_buffer("#define __extension__\n");
  add_pre_buffer("#define __pragma__\n");
+ add_pre_buffer("#define _Pragma(x)\n");

  // gcc defines __SIZE_TYPE__ to be size_t.  For linux/i86 and
  // solaris/sparc that is really "unsigned int" and for linux/x86_64