[vlc-devel] commit: RealAudio: fix compile for Win32 (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Aug 20 21:40:04 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 20 21:39:46 2009 +0200| [16e823e7718d410734f1f39266937f3e49293cdd] | committer: Jean-Baptiste Kempf 

RealAudio: fix compile for Win32

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=16e823e7718d410734f1f39266937f3e49293cdd
---

 modules/codec/realaudio.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/modules/codec/realaudio.c b/modules/codec/realaudio.c
index 0010a08..b68cffc 100644
--- a/modules/codec/realaudio.c
+++ b/modules/codec/realaudio.c
@@ -73,7 +73,9 @@ vlc_module_end ()
  * Local prototypes
  *****************************************************************************/
 static int  OpenDll( decoder_t * );
+#ifndef WIN32
 static int  OpenNativeDll( decoder_t *, char *, char * );
+#endif
 static int  OpenWin32Dll( decoder_t *, char *, char * );
 static void CloseDll( decoder_t * );
 
@@ -390,6 +392,7 @@ static int OpenDll( decoder_t *p_dec )
     return VLC_EGENERIC;
 }
 
+#ifndef WIN32
 static int OpenNativeDll( decoder_t *p_dec, char *psz_path, char *psz_dll )
 {
 #if defined(HAVE_DL_DLOPEN)
@@ -490,10 +493,15 @@ static int OpenNativeDll( decoder_t *p_dec, char *psz_path, char *psz_dll )
     if( context ) p_sys->raFreeDecoder( context );
     if( context ) p_sys->raCloseCodec( context );
     dlclose( handle );
+#else
+    VLC_UNUSED( p_dec );
+    VLC_UNUSED( psz_path);
+    VLC_UNUSED( psz_dll );
 #endif
 
     return VLC_EGENERIC;
 }
+#endif /* Win32 */
 
 static int OpenWin32Dll( decoder_t *p_dec, char *psz_path, char *psz_dll )
 {




More information about the vlc-devel mailing list