[MPlayer-dev-eng] [PATCH] cygwin broken compiler issues

Joey Parrish joey at yunamusic.com
Thu Jun 27 19:00:20 CEST 2002


Hello,

I found that cygwin's gcc segfaults on a certain piece of mplayer code.
By removing math.h, this problem disappears, and the code still compiles
cleanly.  The patch attached keeps math.h from being included when compiling
under the cygwin environment.

--Joey

-- 
"Living in the complex world of the future is somewhat
like having bees live in your head.  But, there they are."
-------------- next part --------------
--- libmpcodecs/ad_vorbis.c	Sun Apr 21 13:06:00 2002
+++ libmpcodecs/ad_vorbis.c	Wed Jun 26 14:51:11 2002
@@ -20,7 +20,9 @@
 
 LIBAD_EXTERN(vorbis)
 
-#include <math.h>
+#if !defined(__CYGWIN__)
+# include <math.h>
+#endif
 #include <vorbis/codec.h>
 
 // This struct is also defined in demux_ogg.c => common header ?


More information about the MPlayer-dev-eng mailing list