aboutsummaryrefslogtreecommitdiff
path: root/packages/patches/mingw_fixes-0.40-1.patch
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-12-29 03:17:23 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-12-29 03:17:23 +0000
commit1a282a4ec88b366347ba0ced456be4f99fae499f (patch)
tree9df0aa175d2c26db5b0705888ca8a292aef8f43f /packages/patches/mingw_fixes-0.40-1.patch
parent9b729c781085d9d52b6a062cdf7eefe979b3cc63 (diff)
more fixes for compiling Pd-extended against 0.40.x, including 64-bit
svn path=/trunk/; revision=7095
Diffstat (limited to 'packages/patches/mingw_fixes-0.40-1.patch')
-rw-r--r--packages/patches/mingw_fixes-0.40-1.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/patches/mingw_fixes-0.40-1.patch b/packages/patches/mingw_fixes-0.40-1.patch
index f5fe84bf..8529e4bf 100644
--- a/packages/patches/mingw_fixes-0.40-1.patch
+++ b/packages/patches/mingw_fixes-0.40-1.patch
@@ -194,3 +194,37 @@ diff -u -w -r1.14 s_inter.c
#include <stdarg.h>
#include <signal.h>
#include <fcntl.h>
+Index: s_entry.c
+===================================================================
+RCS file: /cvsroot/pure-data/pd/src/s_entry.c,v
+retrieving revision 1.3
+diff -u -w -r1.3 s_entry.c
+--- s_entry.c 11 Nov 2004 04:58:21 -0000 1.3
++++ s_entry.c 29 Dec 2006 03:13:08 -0000
+@@ -3,7 +3,11 @@
+
+ int sys_main(int argc, char **argv);
+
+-#ifdef MSW
++/*
++ * gcc does not support the __try stuff, only MSVC. Also, MinGW allows you to
++ * use main() instead of WinMain(). <hans@at.or.at>
++ */
++#ifdef _MSC_VER
+ #include <windows.h>
+ #include <stdio.h>
+
+@@ -21,11 +25,11 @@
+ }
+ }
+
+-#else /* not MSW */
++#else /* not _MSC_VER */
+ int main(int argc, char **argv)
+ {
+ return (sys_main(argc, argv));
+ }
+-#endif
++#endif /* _MSC_VER */
+
+