Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2013 13:42:25 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332481 - head/games/scourge/files
Message-ID:  <201311021342.rA2DgP48091808@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Nov  2 13:42:25 2013
New Revision: 332481
URL: http://svnweb.freebsd.org/changeset/ports/332481

Log:
  games/scourge: Fix C++ -fpermissive errors seen on gcc 4.6+
  
  Approved by:	portmgr (bapt, implicit)

Added:
  head/games/scourge/files/patch-src_squirrel_sqstate.h   (contents, props changed)
  head/games/scourge/files/patch-src_squirrel_squtils.h   (contents, props changed)

Added: head/games/scourge/files/patch-src_squirrel_sqstate.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/scourge/files/patch-src_squirrel_sqstate.h	Sat Nov  2 13:42:25 2013	(r332481)
@@ -0,0 +1,10 @@
+--- src/squirrel/sqstate.h.orig	2008-12-22 23:38:10.000000000 +0000
++++ src/squirrel/sqstate.h
+@@ -113,7 +113,4 @@ extern SQObjectPtr _minusone_;
+ 
+ bool CompileTypemask(SQIntVec &res,const SQChar *typemask);
+ 
+-void *sq_vm_malloc(SQUnsignedInteger size);
+-void *sq_vm_realloc(void *p,SQUnsignedInteger oldsize,SQUnsignedInteger size);
+-void sq_vm_free(void *p,SQUnsignedInteger size);
+ #endif //_SQSTATE_H_

Added: head/games/scourge/files/patch-src_squirrel_squtils.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/scourge/files/patch-src_squirrel_squtils.h	Sat Nov  2 13:42:25 2013	(r332481)
@@ -0,0 +1,13 @@
+--- 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311021342.rA2DgP48091808>