summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKinan Hakim <kinan@google.com>2016-01-27 14:05:54 +0100
committerKinan Hakim <kinan@google.com>2016-01-27 13:11:35 +0000
commit0baf877c64aeb9f5c5d0d3f13c8d2eb25a3c8837 (patch)
tree7f561f03d6f1866cafa8c206ce110e926597d29c
parent3c5bda32ce3dd64d94739177efd9d84764b545f4 (diff)
downloaddng_sdk-0baf877c64aeb9f5c5d0d3f13c8d2eb25a3c8837.tar.gz
Fix the compiler issue for DNG SDK in VS2010 or newer versions.
-rw-r--r--source/dng_types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/dng_types.h b/source/dng_types.h
index ee4dab9..f59771d 100644
--- a/source/dng_types.h
+++ b/source/dng_types.h
@@ -97,8 +97,10 @@ typedef double real64;
/*****************************************************************************/
// Visual Studio now prefers _hypot to hypot
+// Note: since Visual Studio 2010, there is a definition of hypot (in math.h),
+// we only define hypot here for the older Visual Studio versions.
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && _MSC_VER < 1600
#ifdef hypot
#undef hypot