From 0be1b70fba4fec0da9a01bc9bc45d3d1ba574fea Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Lacaze Date: Mon, 9 Jan 2012 10:28:52 +0100 Subject: [PATCH] Mingw has strtoull, make use of it. --- lex.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lex.ll b/lex.ll index 39194767..1b6d382b 100644 --- a/lex.ll +++ b/lex.ll @@ -155,7 +155,7 @@ L?\"(\\.|[^\\"])*\" { lStringConst(yylval, yylloc); return TOKEN_STRING_LITERAL; if (yytext[0] == '0' && yytext[1] == 'b') yylval->intVal = lParseBinary(yytext+2, *yylloc, &endPtr); else { -#ifdef ISPC_IS_WINDOWS +#if defined(ISPC_IS_WINDOWS) && !defined(__MINGW32__) yylval->intVal = _strtoi64(yytext, &endPtr, 0); #else // FIXME: should use strtouq and then issue an error if we can't