Skip to content

Commit 5a8b39f

Browse files
author
Daniel Kroening
committed
Visual Studio supports C11 _Alignof
1 parent f300dd2 commit 5a8b39f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ansi-c/scanner.l

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,8 @@ __decltype { if(PARSER.cpp98 &&
12711271
"_Alignof" { if(!PARSER.cpp98 &&
12721272
(PARSER.mode==configt::ansi_ct::flavourt::GCC ||
12731273
PARSER.mode==configt::ansi_ct::flavourt::APPLE ||
1274-
PARSER.mode==configt::ansi_ct::flavourt::ARM))
1274+
PARSER.mode==configt::ansi_ct::flavourt::ARM ||
1275+
PARSER.mode==configt::ansi_ct::flavourt::VISUAL_STUDIO))
12751276
{ loc(); return TOK_ALIGNOF; }
12761277
else
12771278
return make_identifier();

0 commit comments

Comments
 (0)