|
 |
616cb12 |
From 949c6967871ab089c29d9078a7ccc285873279ee Mon Sep 17 00:00:00 2001
|
|
 |
616cb12 |
From: brianlheim <self@brianlheim.com>
|
|
 |
616cb12 |
Date: Tue, 25 Aug 2020 17:55:43 -0500
|
|
 |
616cb12 |
Subject: [PATCH 1/4] remove outdated #define snprintf _snprintf
|
|
 |
616cb12 |
|
|
 |
616cb12 |
mucks up windows builds with boost 1.74
|
|
 |
616cb12 |
---
|
|
 |
616cb12 |
common/SC_Win32Utils.h | 1 -
|
|
 |
616cb12 |
lang/LangSource/DumpParseNode.cpp | 1 -
|
|
 |
616cb12 |
lang/LangSource/SC_LanguageClient.cpp | 1 -
|
|
 |
616cb12 |
3 files changed, 3 deletions(-)
|
|
 |
616cb12 |
|
|
 |
616cb12 |
diff --git a/common/SC_Win32Utils.h b/common/SC_Win32Utils.h
|
|
 |
616cb12 |
index 83c62ca54..c343935ab 100644
|
|
 |
616cb12 |
--- a/common/SC_Win32Utils.h
|
|
 |
616cb12 |
+++ b/common/SC_Win32Utils.h
|
|
 |
616cb12 |
@@ -51,7 +51,6 @@
|
|
 |
616cb12 |
|
|
 |
616cb12 |
# if _MSC_VER
|
|
 |
616cb12 |
typedef int pid_t;
|
|
 |
616cb12 |
-# define snprintf _snprintf
|
|
 |
616cb12 |
# endif
|
|
 |
616cb12 |
|
|
 |
616cb12 |
void win32_ReplaceCharInString(char* string, int len, char src, char dst);
|
|
 |
616cb12 |
diff --git a/lang/LangSource/DumpParseNode.cpp b/lang/LangSource/DumpParseNode.cpp
|
|
 |
616cb12 |
index 84c852c6f..4313809a8 100644
|
|
 |
616cb12 |
--- a/lang/LangSource/DumpParseNode.cpp
|
|
 |
616cb12 |
+++ b/lang/LangSource/DumpParseNode.cpp
|
|
 |
616cb12 |
@@ -30,7 +30,6 @@
|
|
 |
616cb12 |
#include <ctype.h>
|
|
 |
616cb12 |
|
|
 |
616cb12 |
#ifdef _WIN32
|
|
 |
616cb12 |
-# define snprintf _snprintf
|
|
 |
616cb12 |
# define PATH_MAX _MAX_PATH
|
|
 |
616cb12 |
#endif
|
|
 |
616cb12 |
|
|
 |
616cb12 |
diff --git a/lang/LangSource/SC_LanguageClient.cpp b/lang/LangSource/SC_LanguageClient.cpp
|
|
 |
616cb12 |
index 59531adcb..af7c15b87 100644
|
|
 |
616cb12 |
--- a/lang/LangSource/SC_LanguageClient.cpp
|
|
 |
616cb12 |
+++ b/lang/LangSource/SC_LanguageClient.cpp
|
|
 |
616cb12 |
@@ -32,7 +32,6 @@
|
|
 |
616cb12 |
#ifdef _WIN32
|
|
 |
616cb12 |
# include <stdio.h>
|
|
 |
616cb12 |
# include <direct.h>
|
|
 |
616cb12 |
-# define snprintf _snprintf
|
|
 |
616cb12 |
# ifndef PATH_MAX
|
|
 |
616cb12 |
# define PATH_MAX _MAX_PATH
|
|
 |
616cb12 |
# endif
|
|
 |
616cb12 |
--
|
|
 |
616cb12 |
2.28.0
|
|
 |
616cb12 |
|
|
 |
616cb12 |
|
|
 |
616cb12 |
From 77700bd0ffb6c612bb505922aff370303c67c7df Mon Sep 17 00:00:00 2001
|
|
 |
616cb12 |
From: brianlheim <self@brianlheim.com>
|
|
 |
616cb12 |
Date: Tue, 25 Aug 2020 17:14:32 -0500
|
|
 |
616cb12 |
Subject: [PATCH 2/4] supernova: fix c++17 compilation error
|
|
 |
616cb12 |
|
|
 |
616cb12 |
fix error in sc_plugin_container when compiling under C++17: use checked_deleter instead of checked_delete, as clear_and_dispose expects a functor type
|
|
 |
616cb12 |
---
|
|
 |
616cb12 |
server/supernova/sc/sc_ugen_factory.hpp | 6 +++---
|
|
 |
616cb12 |
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
 |
616cb12 |
|
|
 |
616cb12 |
diff --git a/server/supernova/sc/sc_ugen_factory.hpp b/server/supernova/sc/sc_ugen_factory.hpp
|
|
 |
616cb12 |
index 16460945a..21834c4ad 100644
|
|
 |
616cb12 |
--- a/server/supernova/sc/sc_ugen_factory.hpp
|
|
 |
616cb12 |
+++ b/server/supernova/sc/sc_ugen_factory.hpp
|
|
 |
616cb12 |
@@ -139,9 +139,9 @@ protected:
|
|
 |
616cb12 |
cmdplugin_set(cmdplugin_set_type::bucket_traits(cmdplugin_set_buckets, cmdplugin_set_bucket_count)) {}
|
|
 |
616cb12 |
|
|
 |
616cb12 |
~sc_plugin_container(void) {
|
|
 |
616cb12 |
- ugen_set.clear_and_dispose(boost::checked_delete<sc_ugen_def>);
|
|
 |
616cb12 |
- bufgen_set.clear_and_dispose(boost::checked_delete<sc_bufgen_def>);
|
|
 |
616cb12 |
- cmdplugin_set.clear_and_dispose(boost::checked_delete<sc_cmdplugin_def>);
|
|
 |
616cb12 |
+ ugen_set.clear_and_dispose(boost::checked_deleter<sc_ugen_def>());
|
|
 |
616cb12 |
+ bufgen_set.clear_and_dispose(boost::checked_deleter<sc_bufgen_def>());
|
|
 |
616cb12 |
+ cmdplugin_set.clear_and_dispose(boost::checked_deleter<sc_cmdplugin_def>());
|
|
 |
616cb12 |
}
|
|
 |
616cb12 |
|
|
 |
616cb12 |
public:
|
|
 |
616cb12 |
--
|
|
 |
616cb12 |
2.28.0
|
|
 |
616cb12 |
|
|
 |
616cb12 |
|
|
 |
616cb12 |
From 7b64c4484ec5142b0321e260cfb4148561e9bae5 Mon Sep 17 00:00:00 2001
|
|
 |
616cb12 |
From: brianlheim <self@brianlheim.com>
|
|
 |
616cb12 |
Date: Tue, 25 Aug 2020 17:14:29 -0500
|
|
 |
616cb12 |
Subject: [PATCH 3/4] remove workarounds for old boost versions
|
|
 |
616cb12 |
|
|
 |
616cb12 |
we don't need to support boost pre-1.70 anymore, and tcp::socket::executor_type was always the right typealias to use
|
|
 |
616cb12 |
---
|
|
 |
616cb12 |
server/supernova/sc/sc_osc_handler.hpp | 10 +---------
|
|
 |
616cb12 |
1 file changed, 1 insertion(+), 9 deletions(-)
|
|
 |
616cb12 |
|
|
 |
616cb12 |
diff --git a/server/supernova/sc/sc_osc_handler.hpp b/server/supernova/sc/sc_osc_handler.hpp
|
|
 |
616cb12 |
index a1a30d628..ba767a835 100644
|
|
 |
616cb12 |
--- a/server/supernova/sc/sc_osc_handler.hpp
|
|
 |
616cb12 |
+++ b/server/supernova/sc/sc_osc_handler.hpp
|
|
 |
616cb12 |
@@ -229,11 +229,7 @@ public:
|
|
 |
616cb12 |
class tcp_connection : public nova_endpoint {
|
|
 |
616cb12 |
public:
|
|
 |
616cb12 |
using pointer = std::shared_ptr<tcp_connection>;
|
|
 |
616cb12 |
-#if BOOST_VERSION >= 107000
|
|
 |
616cb12 |
- using executor = boost::asio::executor;
|
|
 |
616cb12 |
-#else
|
|
 |
616cb12 |
- using executor = boost::asio::io_context::executor_type;
|
|
 |
616cb12 |
-#endif
|
|
 |
616cb12 |
+ using executor = tcp::socket::executor_type;
|
|
 |
616cb12 |
|
|
 |
616cb12 |
static pointer create(const executor& executor) { return pointer(new tcp_connection(executor)); }
|
|
 |
616cb12 |
|
|
 |
616cb12 |
@@ -244,11 +240,7 @@ public:
|
|
 |
616cb12 |
bool operator==(tcp_connection const& rhs) const { return &rhs == this; }
|
|
 |
616cb12 |
|
|
 |
616cb12 |
private:
|
|
 |
616cb12 |
-#if BOOST_VERSION >= 107000
|
|
 |
616cb12 |
tcp_connection(const executor& executor): socket_(executor) {}
|
|
 |
616cb12 |
-#else
|
|
 |
616cb12 |
- tcp_connection(const executor& executor): socket_(executor.context()) {}
|
|
 |
616cb12 |
-#endif
|
|
 |
616cb12 |
|
|
 |
616cb12 |
void send(const char* data, size_t length) override final;
|
|
 |
616cb12 |
|
|
 |
616cb12 |
--
|
|
 |
616cb12 |
2.28.0
|
|
 |
616cb12 |
|
|
 |
616cb12 |
|
|
 |
616cb12 |
From 2d32afd25823e6cb263d0cb531b08e25e27ca725 Mon Sep 17 00:00:00 2001
|
|
 |
616cb12 |
From: brianlheim <self@brianlheim.com>
|
|
 |
616cb12 |
Date: Tue, 25 Aug 2020 17:14:23 -0500
|
|
 |
616cb12 |
Subject: [PATCH 4/4] fix boost deprecation warnings
|
|
 |
616cb12 |
|
|
 |
616cb12 |
use boost/bind/bind.hpp instead of boost/bind.hpp
|
|
 |
616cb12 |
---
|
|
 |
616cb12 |
lang/LangPrimSource/PyrSerialPrim.cpp | 2 +-
|
|
 |
616cb12 |
lang/LangPrimSource/SC_ComPort.cpp | 2 +-
|
|
 |
616cb12 |
lang/LangSource/SC_TerminalClient.cpp | 4 +++-
|
|
 |
616cb12 |
server/scsynth/SC_ComPort.cpp | 2 +-
|
|
 |
616cb12 |
server/supernova/sc/sc_osc_handler.cpp | 2 +-
|
|
 |
616cb12 |
5 files changed, 7 insertions(+), 5 deletions(-)
|
|
 |
616cb12 |
|
|
 |
616cb12 |
diff --git a/lang/LangPrimSource/PyrSerialPrim.cpp b/lang/LangPrimSource/PyrSerialPrim.cpp
|
|
 |
616cb12 |
index 7e5f94091..cc56abdce 100644
|
|
 |
616cb12 |
--- a/lang/LangPrimSource/PyrSerialPrim.cpp
|
|
 |
616cb12 |
+++ b/lang/LangPrimSource/PyrSerialPrim.cpp
|
|
 |
616cb12 |
@@ -42,7 +42,7 @@
|
|
 |
616cb12 |
|
|
 |
616cb12 |
#include <boost/asio/use_future.hpp>
|
|
 |
616cb12 |
#include <boost/asio.hpp>
|
|
 |
616cb12 |
-#include <boost/bind.hpp>
|
|
 |
616cb12 |
+#include <boost/bind/bind.hpp>
|
|
 |
616cb12 |
#include <boost/cstdint.hpp>
|
|
 |
616cb12 |
#include <boost/lockfree/spsc_queue.hpp>
|
|
 |
616cb12 |
|
|
 |
616cb12 |
diff --git a/lang/LangPrimSource/SC_ComPort.cpp b/lang/LangPrimSource/SC_ComPort.cpp
|
|
 |
616cb12 |
index 19238dc81..6d2b54b84 100644
|
|
 |
616cb12 |
--- a/lang/LangPrimSource/SC_ComPort.cpp
|
|
 |
616cb12 |
+++ b/lang/LangPrimSource/SC_ComPort.cpp
|
|
 |
616cb12 |
@@ -33,7 +33,7 @@
|
|
 |
616cb12 |
#include "SC_ReplyImpl.hpp"
|
|
 |
616cb12 |
|
|
 |
616cb12 |
#include <boost/asio.hpp>
|
|
 |
616cb12 |
-#include <boost/bind.hpp>
|
|
 |
616cb12 |
+#include <boost/bind/bind.hpp>
|
|
 |
616cb12 |
#include <boost/typeof/typeof.hpp>
|
|
 |
616cb12 |
|
|
 |
616cb12 |
#define scprintf printf
|
|
 |
616cb12 |
diff --git a/lang/LangSource/SC_TerminalClient.cpp b/lang/LangSource/SC_TerminalClient.cpp
|
|
 |
616cb12 |
index 1b993d981..bc3710ca2 100644
|
|
 |
616cb12 |
--- a/lang/LangSource/SC_TerminalClient.cpp
|
|
 |
616cb12 |
+++ b/lang/LangSource/SC_TerminalClient.cpp
|
|
 |
616cb12 |
@@ -29,7 +29,7 @@
|
|
 |
616cb12 |
# include "../../QtCollider/LanguageClient.h"
|
|
 |
616cb12 |
#endif
|
|
 |
616cb12 |
|
|
 |
616cb12 |
-#include <boost/bind.hpp>
|
|
 |
616cb12 |
+#include <boost/bind/bind.hpp>
|
|
 |
616cb12 |
|
|
 |
616cb12 |
#ifdef _WIN32
|
|
 |
616cb12 |
# define __GNU_LIBRARY__
|
|
 |
616cb12 |
@@ -63,6 +63,8 @@
|
|
 |
616cb12 |
|
|
 |
616cb12 |
#include <boost/filesystem/operations.hpp>
|
|
 |
616cb12 |
|
|
 |
616cb12 |
+using namespace boost::placeholders;
|
|
 |
616cb12 |
+
|
|
 |
616cb12 |
static FILE* gPostDest = stdout;
|
|
 |
616cb12 |
|
|
 |
616cb12 |
#ifdef _WIN32
|
|
 |
616cb12 |
diff --git a/server/scsynth/SC_ComPort.cpp b/server/scsynth/SC_ComPort.cpp
|
|
 |
616cb12 |
index 3ab9e9bdb..c8c418675 100644
|
|
 |
616cb12 |
--- a/server/scsynth/SC_ComPort.cpp
|
|
 |
616cb12 |
+++ b/server/scsynth/SC_ComPort.cpp
|
|
 |
616cb12 |
@@ -34,7 +34,7 @@
|
|
 |
616cb12 |
|
|
 |
616cb12 |
#include <boost/asio.hpp>
|
|
 |
616cb12 |
#include <boost/array.hpp>
|
|
 |
616cb12 |
-#include <boost/bind.hpp>
|
|
 |
616cb12 |
+#include <boost/bind/bind.hpp>
|
|
 |
616cb12 |
#include <boost/enable_shared_from_this.hpp>
|
|
 |
616cb12 |
#include <boost/typeof/typeof.hpp>
|
|
 |
616cb12 |
|
|
 |
616cb12 |
diff --git a/server/supernova/sc/sc_osc_handler.cpp b/server/supernova/sc/sc_osc_handler.cpp
|
|
 |
616cb12 |
index ef2a00b14..c08abf590 100644
|
|
 |
616cb12 |
--- a/server/supernova/sc/sc_osc_handler.cpp
|
|
 |
616cb12 |
+++ b/server/supernova/sc/sc_osc_handler.cpp
|
|
 |
616cb12 |
@@ -25,7 +25,7 @@
|
|
 |
616cb12 |
|
|
 |
616cb12 |
#include <boost/asio/placeholders.hpp>
|
|
 |
616cb12 |
#include <boost/asio/read.hpp>
|
|
 |
616cb12 |
-#include <boost/bind.hpp>
|
|
 |
616cb12 |
+#include <boost/bind/bind.hpp>
|
|
 |
616cb12 |
|
|
 |
616cb12 |
|
|
 |
616cb12 |
#include "osc/OscOutboundPacketStream.h"
|
|
 |
616cb12 |
--
|
|
 |
616cb12 |
2.28.0
|
|
 |
616cb12 |
|