mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
e8139ebf58
commit
439d67f502
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue