Commit 4e01592e authored by David Menestrina's avatar David Menestrina Committed by Jean-Baptiste Kempf

ifdef out 32-bit Carbon API calls on x86_64

The Mac OS Carbon APIs are not available to 64-bit applications.
This change just ifdefs out calls to them to avoid compiler errors.
In 64-bit, NPP_HandleEvent will have to be rewritten to use the
Cocoa event model.
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 877bd210
......@@ -163,6 +163,7 @@ int16_t NPP_HandleEvent( NPP instance, void * event )
return false;
}
#ifndef __x86_64__
EventRecord *myEvent = (EventRecord*)event;
switch( myEvent->what )
......@@ -255,6 +256,7 @@ int16_t NPP_HandleEvent( NPP instance, void * event )
default:
;
}
#endif // __x86_64__
return false;
}
#endif /* XP_MACOSX */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment