aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2020-01-21 21:54:22 +0200
committerMartin Storsjö <martin@martin.st>2020-01-23 18:30:26 +0200
commit1001b6a750fd6844a79c0f6551007a75ab7848b2 (patch)
treea4ffc023875b4bf86fc563eaf81d41b56cf7ef86
parent63418e374fcf265bd4a8e79a655bacc96671a726 (diff)
downloadffmpeg-1001b6a750fd6844a79c0f6551007a75ab7848b2.tar.gz
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@martin.st>
-rw-r--r--libavutil/x86/bswap.h1
1 files changed, 1 insertions, 0 deletions
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"