1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/games/scourge/files/patch-src_squirrel_squtils.h
John Marino b465a86bb5 games/scourge: Fix C++ -fpermissive errors seen on gcc 4.6+
Approved by:	portmgr (bapt, implicit)
2013-11-02 13:42:25 +00:00

14 lines
565 B
C

--- src/squirrel/squtils.h.orig 2008-12-22 23:38:10.000000000 +0000
+++ src/squirrel/squtils.h
@@ -2,6 +2,10 @@
#ifndef _SQUTILS_H_
#define _SQUTILS_H_
+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);