Mingw has strtoull, make use of it.

This commit is contained in:
Pierre-Antoine Lacaze
2012-01-09 10:28:52 +01:00
parent a0e9793de3
commit 0be1b70fba

2
lex.ll
View File

@@ -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