]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Shutup visual studio...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 10:32:01 +0000 (12:32 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Thu, 16 Aug 2012 10:32:01 +0000 (12:32 +0200)
ir.c

diff --git a/ir.c b/ir.c
index f1c909440643e2071009fec9bc4684b3886aadc1..1d4d047b9e480b6e7961042cb0927b21312d5286 100644 (file)
--- 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 "<INVALID>";