From 1001b6a750fd6844a79c0f6551007a75ab7848b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 21 Jan 2020 21:54:22 +0200 Subject: [PATCH] libavutil: x86: Include stdlib.h before using _byteswap_ulong MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- 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 #if defined(_MSC_VER) +#include #include #endif #include "config.h"