mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-10 22:51:37 +00:00
No one objected, so I changed case '0' ... case '7' in common.c to case '0': case '1': case
2' and so on. Now it compiles with MSVC.
This commit is contained in:
parent
5bfd333ae6
commit
46de54d92d
1 changed files with 3 additions and 1 deletions
|
@ -648,7 +648,9 @@ skipwhite:
|
||||||
base+=8;
|
base+=8;
|
||||||
string=data;
|
string=data;
|
||||||
goto parse_char_number;
|
goto parse_char_number;
|
||||||
case '0' ... '7':
|
//Tonik case '0' ... '7': -- MSVC 6.0 doesn't understand this
|
||||||
|
case '0': case '1': case '2': case '3':
|
||||||
|
case '4': case '5': case '6': case '7':
|
||||||
strncpy(buf,data,3);
|
strncpy(buf,data,3);
|
||||||
parse_char_number:
|
parse_char_number:
|
||||||
c=strtol(string,&str,base);
|
c=strtol(string,&str,base);
|
||||||
|
|
Loading…
Reference in a new issue