aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cc.h1
-rw-r--r--pp.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/cc.h b/cc.h
index ce88f92..1f021fa 100644
--- a/cc.h
+++ b/cc.h
@@ -57,6 +57,7 @@ enum tokenkind {
T_STATIC_ASSERT,
T_THREAD_LOCAL,
T__ASM__,
+ T__ATTRIBUTE__,
T__TYPEOF__,
/* punctuator */
diff --git a/pp.c b/pp.c
index 25409d1..a694972 100644
--- a/pp.c
+++ b/pp.c
@@ -29,6 +29,7 @@ keyword(struct token *tok)
{"__alignof__", T_ALIGNOF},
{"__asm", T__ASM__},
{"__asm__", T__ASM__},
+ {"__attribute__", T__ATTRIBUTE__},
{"__inline", TINLINE},
{"__inline__", TINLINE},
{"__signed", TSIGNED},