From 54ef08a2b322f49912b2cf2c7965e36479d761f3 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 8 Jun 2009 17:50:12 +0000 Subject: submitted this patch #2803092 created from commit #11714 svn path=/trunk/; revision=11715 --- packages/patches/fix_extra_for_mingw-0.42.5.patch | 74 +++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 packages/patches/fix_extra_for_mingw-0.42.5.patch (limited to 'packages/patches') diff --git a/packages/patches/fix_extra_for_mingw-0.42.5.patch b/packages/patches/fix_extra_for_mingw-0.42.5.patch new file mode 100644 index 00000000..7267220b --- /dev/null +++ b/packages/patches/fix_extra_for_mingw-0.42.5.patch @@ -0,0 +1,74 @@ +--- branches/pd-extended/0.42/pd/extra/bonk~/bonk~.c 2009/06/08 15:04:10 11713 ++++ branches/pd-extended/0.42/pd/extra/bonk~/bonk~.c 2009/06/08 17:43:16 11714 +@@ -53,7 +53,7 @@ + #include + #include + +-#ifdef NT ++#ifdef _MSC_VER + #pragma warning (disable: 4305 4244) + #endif + +@@ -82,7 +82,12 @@ + #endif + + #ifndef _MSC_VER +-#include ++# ifdef __MINGW32__ ++/* alloca is in malloc.h in MinGW */ ++# include ++# else ++# include ++# endif + #endif + + /* ------------------------ bonk~ ----------------------------- */ +--- branches/pd-extended/0.42/pd/extra/fiddle~/fiddle~.c 2009/06/08 15:04:10 11713 ++++ branches/pd-extended/0.42/pd/extra/fiddle~/fiddle~.c 2009/06/08 17:43:16 11714 +@@ -28,7 +28,7 @@ + * + */ + +-#ifdef NT ++#ifdef _MSC_VER /* this is only needed with Microsoft's compiler */ + #define flog log + #define fexp exp + #define fsqrt sqrt +--- branches/pd-extended/0.42/pd/extra/pique/pique.c 2009/06/08 15:04:10 11713 ++++ branches/pd-extended/0.42/pd/extra/pique/pique.c 2009/06/08 17:43:16 11714 +@@ -7,7 +7,7 @@ + #include "m_pd.h" + #include + #include +-#ifdef NT ++#ifdef _MSC_VER /* this is only needed with Microsoft's compiler */ + #pragma warning( disable : 4244 ) + #pragma warning( disable : 4305 ) + #endif +--- branches/pd-extended/0.42/pd/extra/sigmund~/sigmund~.c 2009/06/08 15:04:10 11713 ++++ branches/pd-extended/0.42/pd/extra/sigmund~/sigmund~.c 2009/06/08 17:43:16 11714 +@@ -13,7 +13,7 @@ + and usable in other contexts. The one external requirement is a real + single-precision FFT, invoked as in the Mayer one: */ + +-#ifdef NT ++#ifdef _MSC_VER /* this is only needed with Microsoft's compiler */ + __declspec(dllimport) extern + #endif + void mayer_realfft(int npoints, float *buf); +@@ -26,13 +26,13 @@ + #include + #include + #include +-#ifdef NT ++#ifdef _WIN32 + #include + #else + #include + #endif + #include +-#ifdef NT ++#ifdef _MSC_VER /* this is only needed with Microsoft's compiler */ + #pragma warning( disable : 4244 ) + #pragma warning( disable : 4305 ) + #endif -- cgit v1.2.1