diff options
author | Miller Puckette <millerpuckette@users.sourceforge.net> | 2007-07-20 03:25:21 +0000 |
---|---|---|
committer | Miller Puckette <millerpuckette@users.sourceforge.net> | 2007-07-20 03:25:21 +0000 |
commit | 1e45c6bafc8419930958103cc1651ff86cf5d84d (patch) | |
tree | 260d94049e3302f7fc833abd7a8d3479f0631e49 /pd/src/s_entry.c | |
parent | daa1933fed59113296b8e044fc370587b068aea9 (diff) |
various bug fixes.
svn path=/trunk/; revision=8186
Diffstat (limited to 'pd/src/s_entry.c')
-rw-r--r-- | pd/src/s_entry.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pd/src/s_entry.c b/pd/src/s_entry.c index eb49cfc1..5cef73cc 100644 --- a/pd/src/s_entry.c +++ b/pd/src/s_entry.c @@ -3,7 +3,11 @@ that externs can link back to functions defined in pd. */ 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> + */ +#if defined(_MSC_VER) && !defined(COMMANDVERSION) #include <windows.h> #include <stdio.h> @@ -21,11 +25,11 @@ int WINAPI WinMain(HINSTANCE hInstance, } } -#else /* not MSW */ +#else /* not _MSC_VER ... */ int main(int argc, char **argv) { return (sys_main(argc, argv)); } -#endif +#endif /* _MSC_VER */ |