FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
551 stars 107 forks source link

Compile using MSVC6 #363

Closed shefben closed 6 years ago

shefben commented 6 years ago

I don't know if this is just an issue i am having or if this is not compatible with vc6

but i get multiple errors when trying to compile it:

client\cl_main.c(1698) : error C2143: syntax error : missing ';' before 'type' client\cl_main.c(1708) : error C2065: 'extensions' : undeclared identifier client\cl_main.c(1785) : error C2143: syntax error : missing ';' before 'type' client\cl_main.c(1787) : error C2065: 'str' : undeclared identifier client\cl_main.c(1885) : error C2061: syntax error : identifier 'CL_GetMessage' client\cl_main.c(1885) : error C2059: syntax error : ';' client\cl_main.c(1885) : error C2059: syntax error : 'type' client\cl_main.c(1904) : warning C4013: 'CL_GetMessage' undefined; assuming extern returning int server\sv_client.c(2200) : error C2143: syntax error : missing ';' before 'const' server\sv_client.c(2203) : error C2065: 'model' : undeclared identifier

a1batross commented 6 years ago

msvc6 build is not tested for engine.

I would recommend to use modern VC or just mingw.

shefben commented 6 years ago

sorry, i fixed the errors by moving the variable definition itself (not the assignment) to the top of the functions

a1batross commented 6 years ago

Nice to hear it. Can you send a PR with fixes? :)

a1batross commented 6 years ago

Fixed in 6a08c36e6f8331961aec38618a3a280f61ac3145.