From: Wolfgang (Blub) Bumiller Date: Thu, 16 Aug 2012 10:32:01 +0000 (+0200) Subject: Shutup visual studio... X-Git-Tag: 0.1-rc1~267 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d9da4d11b159bc67e0348ae3757f5b95a56aa96f;p=xonotic%2Fgmqcc.git Shutup visual studio... --- diff --git a/ir.c b/ir.c index f1c9094..1d4d047 100644 --- a/ir.c +++ b/ir.c @@ -2773,6 +2773,12 @@ bool ir_builder_generate(ir_builder *self, const char *filename) #define IND_BUFSZ 1024 +#ifdef WIN32 +# define strncat(dst, src, sz) strncat_s(dst, sz, src, _TRUNCATE) +#else +# define strncat strncat +#endif + const char *qc_opname(int op) { if (op < 0) return "";