+#ifdef __APPLE__
+ OSErr err;
+ SInt32 qtVersion, macosversion;
+
+ err = Gestalt(gestaltQuickTimeVersion, &qtVersion);
+ err = Gestalt(gestaltSystemVersion, &macosversion);
+#ifndef NDEBUG
+ msg_Dbg( p_this, "Mac OS version is %#lx", macosversion );
+ msg_Dbg( p_this, "Quicktime version is %#lx", qtVersion );
+#endif
+
+ /* bail out. This plugin is soo Carbon, that it can't be used on 10.5 at all */
+ msg_Info( p_dec, "Your Mac OS version is to new to use this plugin for anything." );
+ return VLC_EGENERIC;
+#endif
+