From 8d3b948e1b19b9a62734e0afb8bef3c83e69b569 Mon Sep 17 00:00:00 2001 From: Ronald Kinard Date: Sun, 1 Feb 2015 19:02:08 -0600 Subject: [PATCH] cmake: Fix compilation for MSVC 2015 snprintf is now available in MSVC 2015! --- src/doomtype.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doomtype.h b/src/doomtype.h index 6bc563527..ff4199775 100644 --- a/src/doomtype.h +++ b/src/doomtype.h @@ -100,9 +100,9 @@ typedef long ssize_t; #if defined (_MSC_VER) || defined (__OS2__) // Microsoft VisualC++ -#ifdef _MSC_VER +#if (_MSC_VER <= 1800) // MSVC 2013 and back #define snprintf _snprintf -#if (_MSC_VER <= 1200) +#if (_MSC_VER <= 1200) // MSVC 2012 and back #define vsnprintf _vsnprintf #endif #endif