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 */)