From: Daniel A. S. <st...@ic...> - 2005-09-29 01:06:16
|
On 28/09/2005, at 5:49, Philip Aker wrote: > On Sep 27, 2005, at 03:44, Alastair Davies wrote: > >> Building on MacOS X 10.2, there are also two (new-ish) undeclared >> identifiers in the function TkMacOSXProcessMouseEvent: > >> kEventParamWindowPartCode >> typeWindowPartCode > >> I guess this is a Jaguar-specific problem, right? yes thanks for bringing this to my attention, I don't build on jaguar often... > Nope, its not defined in the Panther headers either. it certainly is on my Panther 10.3.9, c.f. /System/Library/Frameworks/Carbon.framework/Frameworks/ HIToolbox.framework/Headers/CarbonEvents.h I have added defines so that this will now compile on 10.2 as well (c.f. below), the code to fallback when these are not available at runtime was already there. Cheers, Daniel -- ** Daniel A. Steffen ** "And now for something completely ** Dept. of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> Index: tkMacOSXMouseEvent.c =================================================================== RCS file: /cvsroot/tktoolkit/tk/macosx/tkMacOSXMouseEvent.c,v retrieving revision 1.14 diff -u -p -r1.14 tkMacOSXMouseEvent.c --- tkMacOSXMouseEvent.c 10 Sep 2005 14:53:21 -0000 1.14 +++ tkMacOSXMouseEvent.c 29 Sep 2005 01:04:28 -0000 @@ -61,6 +61,13 @@ #include "tkPort.h" #include "tkMacOSXDebug.h" +#if !defined(MAC_OS_X_VERSION_10_3) || \ + (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_3) + /* Define constants only available on Mac OS X 10.3 or later */ + #define kEventParamWindowPartCode 'wpar' + #define typeWindowPartCode 'wpar' +#endif + typedef struct { WindowRef whichWin; WindowRef activeNonFloating; |