glsl: Fix compilation of glsl_lexer.ll with MSVC.

strtoull is not supported on msvc (as there is no C99 support).
This commit is contained in:
Morgan Armand 2011-10-29 10:37:58 -07:00 committed by Kenneth Graunke
parent e8139ebf58
commit 439d67f502

View file

@ -93,7 +93,11 @@ literal_integer(char *text, int len, struct _mesa_glsl_parse_state *state,
if (base == 16)
digits += 2;
#ifdef _MSC_VER
unsigned __int64 value = _strtoui64(digits, NULL, base);
#else
unsigned long long value = strtoull(digits, NULL, base);
#endif
lval->n = (int)value;