Date: Fri, 30 Aug 2013 15:50:17 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r325708 - head/lang/squirrel/files Message-ID: <201308301550.r7UFoHeV030433@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Fri Aug 30 15:50:17 2013 New Revision: 325708 URL: http://svnweb.freebsd.org/changeset/ports/325708 Log: - Fix build with clang Added: head/lang/squirrel/files/ head/lang/squirrel/files/patch-squirrel-squtils.h (contents, props changed) Added: head/lang/squirrel/files/patch-squirrel-squtils.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/squirrel/files/patch-squirrel-squtils.h Fri Aug 30 15:50:17 2013 (r325708) @@ -0,0 +1,14 @@ +--- squirrel/squtils.h.orig 2008-10-14 18:36:01.000000000 +0400 ++++ squirrel/squtils.h 2013-08-30 19:26:36.769227465 +0400 +@@ -2,6 +2,11 @@ + #ifndef _SQUTILS_H_ + #define _SQUTILS_H_ + ++/* clang fix: "error: call to function 'sq_vm_free' that is neither visible in the template definition nor found by argument-dependent lookup" */ ++void *sq_vm_malloc(SQUnsignedInteger size); ++void *sq_vm_realloc(void *p,SQUnsignedInteger oldsize,SQUnsignedInteger size); ++void sq_vm_free(void *p,SQUnsignedInteger size); ++ + #define sq_new(__ptr,__type) {__ptr=(__type *)sq_vm_malloc(sizeof(__type));new (__ptr) __type;} + #define sq_delete(__ptr,__type) {__ptr->~__type();sq_vm_free(__ptr,sizeof(__type));} + #define SQ_MALLOC(__size) sq_vm_malloc((__size));
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308301550.r7UFoHeV030433>