[Ffmpeg-cvslog] CVS: ffmpeg/libavutil bswap.h,1.12,1.13
Alex Beregszaszi
alex
Sun Feb 12 15:21:11 CET 2006
Update of /cvsroot/ffmpeg/ffmpeg/libavutil
In directory mail:/var2/tmp/cvs-serv17749
Modified Files:
bswap.h
Log Message:
support FreeBSD 5.x endian.h
Index: bswap.h
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavutil/bswap.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- bswap.h 22 Dec 2005 01:10:11 -0000 1.12
+++ bswap.h 12 Feb 2006 14:21:09 -0000 1.13
@@ -8,6 +8,13 @@
#ifdef HAVE_BYTESWAP_H
#include <byteswap.h>
+
+#elif (defined(__FreeBSD__) && __FreeBSD_version >= 500000)
+#include <sys/endian.h>
+#define bswap_16(x) bswap16(x)
+#define bswap_32(x) bswap32(x)
+#define bswap_64(x) bswap64(x)
+
#else
#ifdef ARCH_X86_64
More information about the ffmpeg-cvslog
mailing list