From ea81ecd2870df743bf71e0317d60ae787dcbe17d Mon Sep 17 00:00:00 2001 From: Xavier Leroy Date: Sun, 21 Sep 2014 16:56:32 +0200 Subject: GCCism: accept __volatile and __volatile__ These alternate keywords for "volatile" are used in some header files in the wild. --- cparser/Lexer.mll | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cparser/Lexer.mll') diff --git a/cparser/Lexer.mll b/cparser/Lexer.mll index 53a27d81..3ab83902 100644 --- a/cparser/Lexer.mll +++ b/cparser/Lexer.mll @@ -67,6 +67,8 @@ let init filename channel : Lexing.lexbuf = ("unsigned", fun loc -> UNSIGNED loc); ("void", fun loc -> VOID loc); ("volatile", fun loc -> VOLATILE loc); + ("__volatile", fun loc -> VOLATILE loc); + ("__volatile__", fun loc -> VOLATILE loc); ("while", fun loc -> WHILE loc); ("_Alignas", fun loc -> ALIGNAS loc); ("_Alignof", fun loc -> ALIGNOF loc); -- cgit