X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=projects%2Fmozilla%2Fvlcshell.cpp;h=883205b5311dc9de343e7e94592ab28ddba5519d;hb=6ef23b74e938f1d25009ac01d07b19b451837512;hp=bff669d6edec1e6c44894e6d621a9c77a15ffacd;hpb=efd65b0b03ae8d6317d4cd6443ecc2f05728862a;p=vlc diff --git a/projects/mozilla/vlcshell.cpp b/projects/mozilla/vlcshell.cpp index bff669d6ed..883205b531 100644 --- a/projects/mozilla/vlcshell.cpp +++ b/projects/mozilla/vlcshell.cpp @@ -31,11 +31,6 @@ #include #include -/* Mozilla stuff */ -#ifdef HAVE_MOZILLA_CONFIG_H -# include -#endif - /* This is from mozilla java, do we really need it? */ #if 0 #include @@ -154,7 +149,7 @@ NPError NPP_SetValue( NPP instance, NPNVariable variable, void *value ) * Mac-only API calls *****************************************************************************/ #ifdef XP_MACOSX -int16 NPP_HandleEvent( NPP instance, void * event ) +int16_t NPP_HandleEvent( NPP instance, void * event ) { static UInt32 lastMouseUp = 0; if( instance == NULL ) @@ -168,6 +163,7 @@ int16 NPP_HandleEvent( NPP instance, void * event ) return false; } +#ifndef __x86_64__ EventRecord *myEvent = (EventRecord*)event; switch( myEvent->what ) @@ -260,6 +256,7 @@ int16 NPP_HandleEvent( NPP instance, void * event ) default: ; } +#endif // __x86_64__ return false; } #endif /* XP_MACOSX */ @@ -272,17 +269,24 @@ NPError NPP_Initialize( void ) return NPERR_NO_ERROR; } +#ifdef OJI jref NPP_GetJavaClass( void ) { return NULL; } +#endif void NPP_Shutdown( void ) { ; } -NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, +NPError NPP_New( NPMIMEType pluginType, NPP instance, +#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20) + uint16 mode, int16 argc, +#else + uint16_t mode, int16_t argc, +#endif char* argn[], char* argv[], NPSavedData* saved ) { NPError status; @@ -553,7 +557,11 @@ NPError NPP_SetWindow( NPP instance, NPWindow* window ) } NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream *stream, +#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20) NPBool seekable, uint16 *stype ) +#else + NPBool seekable, uint16_t *stype ) +#endif { if( NULL == instance ) { @@ -582,14 +590,23 @@ NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream *stream, return NPERR_GENERIC_ERROR; } +#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20) int32 NPP_WriteReady( NPP instance, NPStream *stream ) +#else +int32_t NPP_WriteReady( NPP instance, NPStream *stream ) +#endif { /* TODO */ return 8*1024; } +#if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20) int32 NPP_Write( NPP instance, NPStream *stream, int32 offset, int32 len, void *buffer ) +#else +int32_t NPP_Write( NPP instance, NPStream *stream, int32_t offset, + int32_t len, void *buffer ) +#endif { /* TODO */ return len;