[MPlayer-cvslog] r28455 - in trunk: configure libmpcodecs/ad_hwac3.c libmpcodecs/ad_liba52.c

reimar subversion at mplayerhq.hu
Tue Feb 3 11:39:56 CET 2009


Author: reimar
Date: Tue Feb  3 11:39:56 2009
New Revision: 28455

Log:
swab() needs _XOPEN_SOURCE to be defined.
Fixes two implicit declaration warnings.

Modified:
   trunk/configure
   trunk/libmpcodecs/ad_hwac3.c
   trunk/libmpcodecs/ad_liba52.c

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Feb  3 11:21:17 2009	(r28454)
+++ trunk/configure	Tue Feb  3 11:39:56 2009	(r28455)
@@ -3564,6 +3564,7 @@ echores "$_vsscanf"
 
 echocheck "swab()"
 cat > $TMPC << EOF
+#define _XOPEN_SOURCE
 #include <unistd.h>
 int main(void) { swab(0, 0, 0); return 0; }
 EOF

Modified: trunk/libmpcodecs/ad_hwac3.c
==============================================================================
--- trunk/libmpcodecs/ad_hwac3.c	Tue Feb  3 11:21:17 2009	(r28454)
+++ trunk/libmpcodecs/ad_hwac3.c	Tue Feb  3 11:39:56 2009	(r28455)
@@ -5,6 +5,7 @@
    (see http://www.dtek.chalmers.se/~dvd/)
 */
 
+#define _XOPEN_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>

Modified: trunk/libmpcodecs/ad_liba52.c
==============================================================================
--- trunk/libmpcodecs/ad_liba52.c	Tue Feb  3 11:21:17 2009	(r28454)
+++ trunk/libmpcodecs/ad_liba52.c	Tue Feb  3 11:39:56 2009	(r28455)
@@ -1,3 +1,4 @@
+#define _XOPEN_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>



More information about the MPlayer-cvslog mailing list