diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-08-30 23:50:17 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-08-30 23:50:17 +0800 |
commit | 5b00495745b2f6a0736ac33319270127d12d4280 (patch) | |
tree | 8a3ddd6f6ab43df1e4826b55edd9568a23a570d7 /lang | |
parent | b4e3d3401133ff4e2a05199c2d51793c08afc838 (diff) | |
download | freebsd-ports-gnome-5b00495745b2f6a0736ac33319270127d12d4280.tar.gz freebsd-ports-gnome-5b00495745b2f6a0736ac33319270127d12d4280.tar.zst freebsd-ports-gnome-5b00495745b2f6a0736ac33319270127d12d4280.zip |
- Fix build with clang
Diffstat (limited to 'lang')
-rw-r--r-- | lang/squirrel/files/patch-squirrel-squtils.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/squirrel/files/patch-squirrel-squtils.h b/lang/squirrel/files/patch-squirrel-squtils.h new file mode 100644 index 000000000000..298aa9a470bb --- /dev/null +++ b/lang/squirrel/files/patch-squirrel-squtils.h @@ -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)); |