[vlc-devel] [PATCH 3/4] ifdef out 32-bit Carbon API calls on x86_64
David Menestrina
dmenest at yahoo.com
Fri Apr 16 03:34:44 CEST 2010
From: David Menestrina <dmenest-vlc at ofb dot net>
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.
---
projects/mozilla/vlcshell.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/projects/mozilla/vlcshell.cpp b/projects/mozilla/vlcshell.cpp
index 575c2b1..883205b 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 */
--
1.7.0.3
More information about the vlc-devel
mailing list