[MPlayer-cvslog] CVS: main configure,1.1200,1.1201

Diego Biurrun CVS syncmail at mplayerhq.hu
Sat May 13 16:32:39 CEST 2006


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv350

Modified Files:
	configure 
Log Message:
Linkers, assisted by a compiler, can optimize out the string that is being
used to test for endianness. Prevent the linker from optimizing out the
string, as it is being returned.
patch by Derek E. Lewis, dlewis^#@^#solnetworks^#.^#net


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.1200
retrieving revision 1.1201
diff -u -r1.1200 -r1.1201
--- configure	12 May 2006 17:27:03 -0000	1.1200
+++ configure	13 May 2006 14:32:37 -0000	1.1201
@@ -6790,8 +6790,7 @@
 short ascii_name[] = { (('M'<<8)|'P'),(('l'<<8)|'a'),(('y'<<8)|'e'),(('r'<<8)|'B'),
                       (('i'<<8)|'g'),(('E'<<8)|'n'),(('d'<<8)|'i'),(('a'<<8)|'n'),0};
 int main(){
-  char* s = (char*)ascii_name;
-  return 0;
+  return (int)ascii_name;
 } 
 EOF
   if cc_check ; then 




More information about the MPlayer-cvslog mailing list