diff --git a/libyara/libyara.c b/libyara/libyara.c index e1b16c2b1e..8143ab5c2f 100644 --- a/libyara/libyara.c +++ b/libyara/libyara.c @@ -42,8 +42,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #endif #if defined(_WIN32) || defined(__CYGWIN__) +#if !defined(_MSC_VER) || (defined(_MSC_VER) && (_MSC_VER < 1900)) #define snprintf _snprintf #endif +#endif YR_THREAD_STORAGE_KEY tidx_key;