From 1e45c6bafc8419930958103cc1651ff86cf5d84d Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Fri, 20 Jul 2007 03:25:21 +0000 Subject: various bug fixes. svn path=/trunk/; revision=8186 --- pd/src/s_entry.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'pd/src/s_entry.c') 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(). + */ +#if defined(_MSC_VER) && !defined(COMMANDVERSION) #include #include @@ -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 */ -- cgit v1.2.1