VS 2013 has fmin() and fmax()
diff --git a/NEWS b/NEWS
index 6d98bbf..d5c16a8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,16 @@
+Release 0.49.0
+ core:
+ * Fix memory leak in parametrized gouraudTriangleShadedFill
+ * Fix crash on broken files
+ * PDFDoc::setDocInfoStringEntry(): treat value consisting of just the unicode marker as an empty string
+ * VS 2013 has fmin() and fmax()
+
+ utils:
+ * pdfseparate: remove extra '%' in error message
+
+ build system:
+ * configure: Fix typo in disable nss help string
+
Release 0.48.0
core:
* Fix crashes and memory leaks in invalid files.
diff --git a/poppler/poppler-config.h.cmake b/poppler/poppler-config.h.cmake
index e3e2cfb..773f3ff 100644
--- a/poppler/poppler-config.h.cmake
+++ b/poppler/poppler-config.h.cmake
@@ -15,6 +15,7 @@
//
// Copyright (C) 2014 Bogdan Cristea <cristeab@gmail.com>
// Copyright (C) 2014 Hib Eris <hib@hiberis.nl>
+// Copyright (C) 2016 Tor Lillqvist <tml@collabora.com>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -186,7 +187,7 @@
#define GCC_PRINTF_FORMAT(fmt_index, va_index)
#endif
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && _MSC_VER < 1800
#define fmax(a, b) std::max(a, b)
#define fmin(a, b) std::min(a, b)
#endif