[FFmpeg-cvslog] libavutil: x86: Include stdlib.h before using _byteswap_ulong

Martin Storsjö git at videolan.org
Thu Jan 23 18:31:14 EET 2020


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Jan 21 21:54:22 2020 +0200| [1001b6a750fd6844a79c0f6551007a75ab7848b2] | committer: Martin Storsjö

libavutil: x86: Include stdlib.h before using _byteswap_ulong

When clang works in MSVC mode, it does have the _byteswap_ulong
builtin, but one has to include stdlib.h before using it.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1001b6a750fd6844a79c0f6551007a75ab7848b2
---

 libavutil/x86/bswap.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/x86/bswap.h b/libavutil/x86/bswap.h
index ffa59e4c82..b2f18b6c93 100644
--- a/libavutil/x86/bswap.h
+++ b/libavutil/x86/bswap.h
@@ -26,6 +26,7 @@
 
 #include <stdint.h>
 #if defined(_MSC_VER)
+#include <stdlib.h>
 #include <intrin.h>
 #endif
 #include "config.h"



More information about the ffmpeg-cvslog mailing list