File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4545#ifdef THINK_C
4646#include <OSEvents.h> /* For EvQElPtr */
4747#endif
48+ #ifdef __MWERKS__
49+ #include <SIOUX.h>
50+ #endif
4851
4952#ifndef HAVE_UNIVERSAL_HEADERS
5053#define GetResourceSizeOnDisk (x ) SizeResource(x)
@@ -69,21 +72,13 @@ typedef FileFilterYDProcPtr FileFilterYDUPP;
6972#define GETDIR_ID 130 /* Resource ID for our "get directory" */
7073#define SELECTCUR_ITEM 10 /* "Select current directory" button */
7174
72- #ifdef __MWERKS__
73- /*
74- ** With MW we can pass the event off to the console window, so
75- ** we might as well handle all events.
76- */
77- #include <SIOUX.h>
78- #define MAINLOOP_EVENTMASK everyEvent
79- #else
8075/*
81- ** For other compilers we're more careful, since we can't handle
76+ ** We have to be careful, since we can't handle
8277** things like updates (and they'll keep coming back if we don't
83- ** handle them)
78+ ** handle them). Note that we don't know who has windows open, so
79+ ** even handing updates off to SIOUX under MW isn't going to work.
8480*/
8581#define MAINLOOP_EVENTMASK (mDownMask|keyDownMask|osMask)
86- #endif /* __MWERKS__ */
8782
8883#include <signal.h>
8984
You can’t perform that action at this time.
0 commit comments