From: Jack Jansen Date: Mon, 27 Feb 1995 16:17:28 +0000 (+0000) Subject: Under MW also be more conservative about events to request X-Git-Tag: v1.2b4~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16df2aa57b32efa890d83f9c7f34c27d8c2cc742;p=thirdparty%2FPython%2Fcpython.git Under MW also be more conservative about events to request --- diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c index e6767c870199..5c255fbc3806 100644 --- a/Mac/Python/macglue.c +++ b/Mac/Python/macglue.c @@ -45,6 +45,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #ifdef THINK_C #include /* For EvQElPtr */ #endif +#ifdef __MWERKS__ +#include +#endif #ifndef HAVE_UNIVERSAL_HEADERS #define GetResourceSizeOnDisk(x) SizeResource(x) @@ -69,21 +72,13 @@ typedef FileFilterYDProcPtr FileFilterYDUPP; #define GETDIR_ID 130 /* Resource ID for our "get directory" */ #define SELECTCUR_ITEM 10 /* "Select current directory" button */ -#ifdef __MWERKS__ -/* -** With MW we can pass the event off to the console window, so -** we might as well handle all events. -*/ -#include -#define MAINLOOP_EVENTMASK everyEvent -#else /* -** For other compilers we're more careful, since we can't handle +** We have to be careful, since we can't handle ** things like updates (and they'll keep coming back if we don't -** handle them) +** handle them). Note that we don't know who has windows open, so +** even handing updates off to SIOUX under MW isn't going to work. */ #define MAINLOOP_EVENTMASK (mDownMask|keyDownMask|osMask) -#endif /* __MWERKS__ */ #include