From 4e01592ec1c27e28e606a75cd5d9848b7da1a821 Mon Sep 17 00:00:00 2001 From: David Menestrina Date: Thu, 15 Apr 2010 18:34:44 -0700 Subject: [PATCH] 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 --- projects/mozilla/vlcshell.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/mozilla/vlcshell.cpp b/projects/mozilla/vlcshell.cpp index 575c2b1b91..883205b531 100644 --- a/projects/mozilla/vlcshell.cpp +++ b/projects/mozilla/vlcshell.cpp @@ -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 */ -- 2.39.2