]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
Make gmqcc binary smaller (by removing some useless code)
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index c25dd0951a2a901804d85d19c60082c26c769348..7fc606c22d56962882702f7303568c5713c250ba 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -50,6 +50,8 @@ static const char *keywords_fg[] = {
     "typedef",
     "goto",
 
+    "noreturn",
+
     "__builtin_debug_printtype"
 };
 static size_t num_keywords_fg = sizeof(keywords_fg) / sizeof(keywords_fg[0]);
@@ -1351,7 +1353,7 @@ int lex_do(lex_file *lex)
 
         lex->tok.ttype = TOKEN_CHARCONST;
          /* It's a vector if we can successfully scan 3 floats */
-#ifdef WIN32
+#ifdef _MSC_VER
         if (sscanf_s(lex->tok.value, " %f %f %f ",
                    &lex->tok.constval.v.x, &lex->tok.constval.v.y, &lex->tok.constval.v.z) == 3)
 #else