1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/games/adonthell/files/patch-src_win__event.cc
John Marino 9f779a84f2 games/adonthell: Fix C++ to build on gcc 4.6+ and clang
The makefile was also patched because it was programmed to exit 100%
of the time.

Taken from:	Debian
Approved by:	portmgr (bapt, implicit)
2013-11-02 14:18:58 +00:00

12 lines
418 B
C++

--- src/win_event.cc.orig 2002-12-16 19:09:54.000000000 +0000
+++ src/win_event.cc
@@ -35,7 +35,7 @@ void win_event::py_signal_connect (PyObj
case DESTROY:
{
set_callback_destroy (
- makeFunctor (&Functor0wRet<bool>(), *callback, &py_callback::callback_func0ret));
+ makeFunctor (new Functor0wRet<bool>(), *callback, &py_callback::callback_func0ret));
break;
}