2017-08-02 09:29:48 -05:00
|
|
|
From 49f6461d4751d3b16e32ab8f9c93a3856b33be49 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Miklos Vajna <vmiklos@collabora.co.uk>
|
|
|
|
Date: Wed, 2 Aug 2017 14:53:36 +0200
|
|
|
|
Subject: [PATCH] m4: MSVC defines __cplusplus as 199711L still
|
|
|
|
|
|
|
|
See e.g.
|
|
|
|
<https://stackoverflow.com/questions/37503029/cplusplus-is-equal-to-199711-in-msvc-does-it-support-c11>,
|
|
|
|
on MSVC we can't depend on the value of __cplusplus, since that one is a
|
|
|
|
too low value, even if everything else works fine.
|
|
|
|
---
|
|
|
|
m4/ax_cxx_compile_stdcxx.m4 | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff -Naur a/configure b/configure
|
|
|
|
--- a/configure 2017-08-02 14:50:09.000000000 +0200
|
|
|
|
+++ b/configure 2017-08-02 14:50:57.000000000 +0200
|
|
|
|
@@ -16001,7 +16001,7 @@
|
|
|
|
|
|
|
|
#error "This is not a C++ compiler"
|
|
|
|
|
|
|
|
-#elif __cplusplus < 201103L
|
|
|
|
+#elif __cplusplus < 201103L && !(defined _MSC_VER)
|
|
|
|
|
|
|
|
#error "This is not a C++11 compiler"
|
|
|
|
|
|
|
|
@@ -16314,7 +16314,7 @@
|
|
|
|
|
|
|
|
#error "This is not a C++ compiler"
|
|
|
|
|
|
|
|
-#elif __cplusplus < 201103L
|
|
|
|
+#elif __cplusplus < 201103L && !(defined _MSC_VER)
|
|
|
|
|
|
|
|
#error "This is not a C++11 compiler"
|
|
|
|
|
|
|
|
@@ -16636,7 +16636,7 @@
|
|
|
|
|
|
|
|
#error "This is not a C++ compiler"
|
|
|
|
|
|
|
|
-#elif __cplusplus < 201103L
|
|
|
|
+#elif __cplusplus < 201103L && !(defined _MSC_VER)
|
|
|
|
|
|
|
|
#error "This is not a C++11 compiler"
|
|
|
|
|
2017-08-09 03:53:11 -05:00
|
|
|
diff --git a/src/lib/EPUBGenerator.cpp b/src/lib/EPUBGenerator.cpp
|
|
|
|
index 9dbccac..3357cf2 100644
|
|
|
|
--- a/src/lib/EPUBGenerator.cpp
|
|
|
|
+++ b/src/lib/EPUBGenerator.cpp
|
|
|
|
@@ -7,6 +7,8 @@
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
+#include <sstream>
|
|
|
|
+
|
|
|
|
#include <boost/uuid/uuid.hpp>
|
|
|
|
#include <boost/uuid/uuid_generators.hpp>
|
|
|
|
#include <boost/uuid/uuid_io.hpp>
|
2017-08-02 09:29:48 -05:00
|
|
|
--
|
|
|
|
2.12.3
|
|
|
|
|