diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-06-08 17:50:12 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-06-08 17:50:12 +0000 |
commit | 54ef08a2b322f49912b2cf2c7965e36479d761f3 (patch) | |
tree | 31ac25378e3ff05752c7afc8375b77ff1b24e355 /packages/patches | |
parent | 01b223ac0460db0995a566c73276ade636b8000f (diff) |
submitted this patch #2803092 created from commit #11714
svn path=/trunk/; revision=11715
Diffstat (limited to 'packages/patches')
-rw-r--r-- | packages/patches/fix_extra_for_mingw-0.42.5.patch | 74 |
1 files changed, 74 insertions, 0 deletions
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 <stdio.h> + #include <string.h> + +-#ifdef NT ++#ifdef _MSC_VER + #pragma warning (disable: 4305 4244) + #endif + +@@ -82,7 +82,12 @@ + #endif + + #ifndef _MSC_VER +-#include <alloca.h> ++# ifdef __MINGW32__ ++/* alloca is in malloc.h in MinGW */ ++# include <malloc.h> ++# else ++# include <alloca.h> ++# 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 <math.h> + #include <stdio.h> +-#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 <math.h> + #include <stdio.h> + #include <string.h> +-#ifdef NT ++#ifdef _WIN32 + #include <malloc.h> + #else + #include <alloca.h> + #endif + #include <stdlib.h> +-#ifdef NT ++#ifdef _MSC_VER /* this is only needed with Microsoft's compiler */ + #pragma warning( disable : 4244 ) + #pragma warning( disable : 4305 ) + #endif |