sscanf_s only for _MSC_VER not WIN32 in exec.c

This commit is contained in:
Wolfgang Bumiller 2012-12-20 15:46:31 +01:00
parent 5d51930adf
commit b02c4e4d10

2
exec.c
View file

@ -814,7 +814,7 @@ static void prog_main_setparams(qc_program *prog)
arg->vector[2] = 0;
switch (main_params[i].vtype) {
case TYPE_VECTOR:
#ifdef WIN32
#ifdef _MSC_VER
(void)sscanf_s(main_params[i].value, " %f %f %f ",
&arg->vector[0],
&arg->vector[1],