[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:42:48 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=dd07a52

The following commit has been merged in the master branch:
commit dd07a525a6caa0d2849688c7dcafa18d2a7de3fe
Author: Robin Mills <robin at clanmills.com>
Date:   Wed Oct 12 04:47:23 2011 +0000

    Added support for stdint.h being available in DevStudio 2010
    (Thanks to Ketil Wright for bringing this to our attention)
---
 msvc/include/exv_msvc.h   |  5 +++++
 msvc64/include/exv_msvc.h |  5 +++++
 src/types.hpp             | 17 ++++++++---------
 3 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/msvc/include/exv_msvc.h b/msvc/include/exv_msvc.h
index 9ca2abc..224bdd6 100644
--- a/msvc/include/exv_msvc.h
+++ b/msvc/include/exv_msvc.h
@@ -13,6 +13,11 @@
 
 #ifdef _MSC_VER
 
+#if _MSC_VER >= 1400
+// stdint.h was introduced with DevStudio 2010
+#define EXV_HAVE_STDINT_H 1
+#endif
+
 /* Define to 1 if you have the <process.h> header file. */
 #define EXV_HAVE_PROCESS_H 1
 
diff --git a/msvc64/include/exv_msvc.h b/msvc64/include/exv_msvc.h
index ef0897e..f7bf72e 100644
--- a/msvc64/include/exv_msvc.h
+++ b/msvc64/include/exv_msvc.h
@@ -13,6 +13,11 @@
 
 #ifdef _MSC_VER
 
+#if _MSC_VER >= 1400
+// stdint.h was introduced with DevStudio 2010
+#define EXV_HAVE_STDINT_H 1
+#endif
+
 /* Define to 1 if you have the <process.h> header file. */
 #define EXV_HAVE_PROCESS_H 1
 
diff --git a/src/types.hpp b/src/types.hpp
index 0ed6ca5..9e2d169 100644
--- a/src/types.hpp
+++ b/src/types.hpp
@@ -48,17 +48,11 @@
 #include <utility>
 #include <algorithm>
 #include <sstream>
+
 #ifdef EXV_HAVE_STDINT_H
 # include <stdint.h>
-#endif
-
-// MSVC macro to convert a string to a wide string
-#ifdef EXV_UNICODE_PATH
-# define EXV_WIDEN(t) L ## t
-#endif
-
-// MSVC doesn't provide C99 types, but it has MS specific variants
-#ifdef _MSC_VER
+#elif defined(_MSC_VER)
+// MSVC (before 2010) doesn't provide C99 types, but it has MS specific variants
 typedef unsigned __int8  uint8_t;
 typedef unsigned __int16 uint16_t;
 typedef unsigned __int32 uint32_t;
@@ -69,6 +63,11 @@ typedef __int32          int32_t;
 typedef __int64          int64_t;
 #endif
 
+// MSVC macro to convert a string to a wide string
+#ifdef EXV_UNICODE_PATH
+# define EXV_WIDEN(t) L ## t
+#endif
+
 /*!
   @brief Macro to make calls to member functions through a pointer more readable.
          See the C++ FAQ LITE, item

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list