Patches item #2859478, was opened at 2009-09-15 14:35 Message generated for change (Settings changed) made by eighthave You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2859478...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: puredata Group: bugfix
Status: Closed Resolution: Accepted
Priority: 8 Private: No Submitted By: Hans-Christoph Steiner (eighthave) Assigned to: Miller Puckette (millerpuckette) Summary: in Win32, allloca() is in malloc.h
Initial Comment: bonk~.c won't build without this change. MinGW has alloca() but defined in malloc.h. I don't know about Microsoft VC, so I added a guard for that:
=================================================================== --- bonk~/bonk~.c (revision 12350) +++ bonk~/bonk~.c (working copy) @@ -82,7 +82,9 @@ static t_class *bonk_class; #endif
-#ifndef _MSC_VER +#ifdef _WIN32 +#include <malloc.h> +#elif ! defined(_MSC_VER) #include <alloca.h> #endif
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave)
Date: 2010-07-15 16:15
Message: accepted into 0.43 in commit dcd1375148324317e88bc54f4e0baa60df1556cb
----------------------------------------------------------------------
Comment By: Hans-Christoph Steiner (eighthave) Date: 2010-01-01 21:01
Message: FYI: this patch has already been included in the pd-gui-rewrite/0.43 branch:
https://pure-data.svn.sourceforge.net/svnroot/pure-data/branches/pd-gui-rewr...
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=478072&aid=2859478...