]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
sscanf_s only for _MSC_VER not WIN32 in exec.c
authorWolfgang Bumiller <blub@speed.at>
Thu, 20 Dec 2012 14:46:31 +0000 (15:46 +0100)
committerWolfgang Bumiller <blub@speed.at>
Thu, 20 Dec 2012 14:46:31 +0000 (15:46 +0100)
exec.c

diff --git a/exec.c b/exec.c
index b8f74ac72c61f4152f19d5dd9e1f1bb9330ddebe..5af67851bf046ea43b62c5497abe5b0d3cfb3c79 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -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],