From 78aa05228a17b56816897e55ff6ac06efa2d56dd Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Tue, 17 May 2016 14:30:19 +0200 Subject: [PATCH] fixed Visual warning in debug mode --- lib/common/mem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/common/mem.h b/lib/common/mem.h index 201d9bb0f..99de9cb36 100644 --- a/lib/common/mem.h +++ b/lib/common/mem.h @@ -49,6 +49,9 @@ extern "C" { /*-**************************************** * Compiler specifics ******************************************/ +#if defined(_MSC_VER) +# include /* _byteswap_ */ +#endif #if defined(__GNUC__) # define MEM_STATIC static __attribute__((unused)) #elif defined (__cplusplus) || (defined (__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) /* C99 */)