diff --git a/include/ntconf.h b/include/ntconf.h index 9d79006f0..994615c2d 100644 --- a/include/ntconf.h +++ b/include/ntconf.h @@ -146,6 +146,14 @@ extern void NDECL(getlock); #define strncmpi(a, b, c) strnicmp(a, b, c) #endif +#ifdef _MSC_VER +/* Visual Studio defines this in their own headers, which we don't use */ +#ifndef snprintf +#define snprintf _snprintf +#pragma warning( \ + disable : 4996) /* deprecation warning suggesting snprintf_s */ +#endif +#endif #include #include