[MPlayer-dev-eng] [PATCH][BUG] strlower in Gui/skin/skin.c conflicts with libsmbclient

Raindel Shachar raindel at techunix.technion.ac.il
Tue Jun 3 15:03:16 CEST 2003


Hi. the strlower function defined in Gui/skin/skin.c conflicts with the
strlower function defined in libsmbclient. strlower is only used in
skin.c, so defining it as static solved the problem. I attach a patch
which works for me, and enables to compile both Gui and smb support
simultaniously

Cheers
Shachar

-------------- next part --------------
cvs server: Diffing Gui/skin
Index: Gui/skin/skin.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/skin/skin.c,v
retrieving revision 1.23
diff -u -r1.23 skin.c
--- Gui/skin/skin.c     17 Jan 2003 22:39:41 -0000      1.23
+++ Gui/skin/skin.c     3 Jun 2003 13:27:10 -0000
@@ -71,7 +71,7 @@
   } \
 }
 
-char * strlower( char * in )
+static char * strlower( char * in )
 {
  int i;
  for( i=0;i<(int)strlen( in );i++ ) in[i]=( in[i] >= 'A' ? ( in[i] <= 'Z' ?  in[i]+='A' : in[i] ) : in[i] );


More information about the MPlayer-dev-eng mailing list