File tree Expand file tree Collapse file tree 6 files changed +32
-4
lines changed Expand file tree Collapse file tree 6 files changed +32
-4
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ Some of this code comes from
2828 Some techniques borrowed from Pete Gontier's original FinderDragPro.
2929
3030
31- Copyright: Copyright: © 1999 by Apple Computer, Inc.
31+ Copyright: Copyright: � 1999 by Apple Computer, Inc.
3232 all rights reserved.
3333
3434 Disclaimer: You may incorporate this sample code into your applications without
@@ -55,11 +55,14 @@ Some of this code comes from
5555
5656#include "sq.h"
5757
58+ #if TARGET_API_MAC_CARBON
59+ #include <Carbon/Carbon.h>
60+ #else
5861#include <Drag.h>
5962#include <MacWindows.h>
6063#include <Gestalt.h>
6164#include <Quickdraw.h>
62-
65+ #endif
6366
6467#include "sqVirtualMachine.h"
6568#include "sqMacUnixFileInterface.h"
Original file line number Diff line number Diff line change 1111#include "sqMacUIConstants.h"
1212#include "FilePlugin.h"
1313
14- #include <Files.h>
14+ #if TARGET_API_MAC_CARBON
15+ #include <Carbon/Carbon.h>
16+ #else
17+ #include <Files.h>
18+ #endif
1519
1620#if !defined(PATH_MAX )
1721# include <sys/syslimits.h>
Original file line number Diff line number Diff line change 1717
1818extern struct VirtualMachine * interpreterProxy ;
1919
20+ #if TARGET_API_MAC_CARBON
21+ #include <Carbon/Carbon.h>
22+ #else
2023#include <CFUUID.h>
24+ #endif
25+
2126int sqUUIDInit (void );
2227int sqUUIDShutdown (void );
2328
Original file line number Diff line number Diff line change 9999
100100#include <unistd.h>
101101#include <pthread.h>
102+
103+ #if TARGET_API_MAC_CARBON
104+ #include <Carbon/Carbon.h>
105+ #else
102106#include <Processes.h>
107+ #endif
103108
104109#if !defined(PATH_MAX )
105110# include <sys/syslimits.h>
Original file line number Diff line number Diff line change 99 *
1010 */
1111
12- #include <Debugging.h>
12+ #if TARGET_API_MAC_CARBON
1313#include <Carbon/Carbon.h>
14+ #else
15+ #include <Debugging.h>
16+ #endif
17+
1418#include <fcntl.h>
1519#include <unistd.h>
1620#include <stdio.h>
Original file line number Diff line number Diff line change 5555
5656#include <pthread.h>
5757#include "sqaio.h"
58+
59+ #if TARGET_API_MAC_CARBON
60+ #include <Carbon/Carbon.h>
61+ #else
5862#include <Quickdraw.h>
63+ #endif
64+
5965#include <unistd.h>
6066
6167enum { KeyMapSize = 32 };
@@ -264,6 +270,7 @@ ioGetNextEvent(sqInputEvent *evt)
264270 if (postMessageHook )
265271 postMessageHook ((EventRecord * ) evt -> unused1 );
266272 free ((void * ) evt -> unused1 );
273+ evt -> unused1 = NULL ;
267274 return ioGetNextEvent (evt );
268275 }
269276 return true;
You can’t perform that action at this time.
0 commit comments