|
|
@@ -1,6 +1,6 @@ |
|
|
--- configure.ac.orig |
|
|
+++ configure.ac |
|
|
@@ -54,8 +54,19 @@ ZMQ_ORIG_CXXFLAGS="${CXXFLAGS:-none}" |
|
|
@@ -55,8 +55,19 @@ ZMQ_ORIG_CXXFLAGS="${CXXFLAGS:-none}" |
|
|
# Checks for programs. |
|
|
AC_PROG_CC |
|
|
AX_CHECK_COMPILE_FLAG([-std=gnu11], [CFLAGS+=" -std=gnu11"], [AC_PROG_CC_C99]) |
|
|
@@ -21,38 +21,40 @@ |
|
|
AX_CODE_COVERAGE |
|
|
AM_PROG_CC_C_O |
|
|
AC_PROG_SED |
|
|
diff --git a/src/atomic_counter.hpp b/src/atomic_counter.hpp |
|
|
index 23a7c50..2fc2fe4 100644 |
|
|
--- src/atomic_counter.hpp.orig |
|
|
+++ src/atomic_counter.hpp |
|
|
@@ -36,7 +36,7 @@ |
|
|
#define ZMQ_ATOMIC_COUNTER_MUTEX |
|
|
#elif defined ZMQ_HAVE_ATOMIC_INTRINSICS |
|
|
#define ZMQ_ATOMIC_COUNTER_INTRINSIC |
|
|
-#elif (defined __cplusplus && __cplusplus >= 201103L) |
|
|
+#elif (defined __cplusplus && defined ZMQ_USE_CXX11) |
|
|
-#elif (defined __cplusplus && __cplusplus >= 201103L) \ |
|
|
+#elif (defined __cplusplus && defined ZMQ_USE_CXX11) \ |
|
|
|| (defined _MSC_VER && _MSC_VER >= 1900) |
|
|
#define ZMQ_ATOMIC_COUNTER_CXX11 |
|
|
#elif (defined __i386__ || defined __x86_64__) && defined __GNUC__ |
|
|
#define ZMQ_ATOMIC_COUNTER_X86 |
|
|
--- src/atomic_ptr.hpp.orig |
|
|
+++ src/atomic_ptr.hpp |
|
|
@@ -34,7 +34,7 @@ |
|
|
#define ZMQ_ATOMIC_PTR_MUTEX |
|
|
#elif defined ZMQ_HAVE_ATOMIC_INTRINSICS |
|
|
#define ZMQ_ATOMIC_PTR_INTRINSIC |
|
|
-#elif (defined __cplusplus && __cplusplus >= 201103L) |
|
|
+#elif (defined __cplusplus && defined ZMQ_USE_CXX11) |
|
|
-#elif (defined __cplusplus && __cplusplus >= 201103L) \ |
|
|
+#elif (defined __cplusplus && defined ZMQ_USE_CXX11) \ |
|
|
|| (defined _MSC_VER && _MSC_VER >= 1900) |
|
|
#define ZMQ_ATOMIC_PTR_CXX11 |
|
|
#elif (defined __i386__ || defined __x86_64__) && defined __GNUC__ |
|
|
#define ZMQ_ATOMIC_PTR_X86 |
|
|
--- src/blob.hpp.orig |
|
|
+++ src/blob.hpp |
|
|
@@ -34,7 +34,7 @@ |
|
|
#include <string.h> |
|
|
#include <algorithm> |
|
|
|
|
|
-#if __cplusplus >= 201103L || defined(_MSC_VER) && _MSC_VER >= 1700 |
|
|
+#if ZMQ_USE_CXX11 || (defined(_MSC_VER) && _MSC_VER >= 1700) |
|
|
-#if __cplusplus >= 201103L || defined(_MSC_VER) && _MSC_VER > 1700 |
|
|
+#if defined(ZMQ_USE_CXX11) || (defined(_MSC_VER) && _MSC_VER > 1700) |
|
|
#define ZMQ_HAS_MOVE_SEMANTICS |
|
|
#define ZMQ_MAP_INSERT_OR_EMPLACE(k, v) emplace (k,v) |
|
|
#define ZMQ_MAP_INSERT_OR_EMPLACE(k, v) emplace (k, v) |
|
|
#define ZMQ_PUSH_OR_EMPLACE_BACK emplace_back |
|
|
--- src/condition_variable.hpp.orig |
|
|
+++ src/condition_variable.hpp |
|
|
|