Commit 4ab92608 authored by David Menestrina's avatar David Menestrina Committed by Rémi Denis-Courmont

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: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 1fd9a239
......@@ -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 )
#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