Commit 56335ed1 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>
(cherry picked from commit 4e01592ec1c27e28e606a75cd5d9848b7da1a821)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent adafc8bb
......@@ -163,6 +163,7 @@ int16 NPP_HandleEvent( NPP instance, void * event )
return false;
}
#ifndef __x86_64__
EventRecord *myEvent = (EventRecord*)event;
switch( myEvent->what )
......@@ -255,6 +256,7 @@ int16 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