Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2022-05-31 16:13:11 +0300
committereidheim <eidheim@gmail.com>2022-05-31 16:13:11 +0300
commit293a407f39fe50e285c8599b3d98a7da25371d20 (patch)
treeaf85a16dd20d5aea3b9ee417d48687e7c1d0e1fa
parent571687c43c838f5f633f068b987e57a871597251 (diff)
Renamed DEPRECATED to SW_DEPRECATED to avoid name conflicts
-rw-r--r--server_ws.hpp4
-rw-r--r--utility.hpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/server_ws.hpp b/server_ws.hpp
index 991b29d..339d65b 100644
--- a/server_ws.hpp
+++ b/server_ws.hpp
@@ -275,7 +275,7 @@ namespace SimpleWeb {
}
/// Deprecated, please use remote_endpoint().address().to_string() instead.
- DEPRECATED std::string remote_endpoint_address() const noexcept {
+ SW_DEPRECATED std::string remote_endpoint_address() const noexcept {
try {
return endpoint.address().to_string();
}
@@ -285,7 +285,7 @@ namespace SimpleWeb {
}
/// Deprecated, please use remote_endpoint().port() instead.
- DEPRECATED unsigned short remote_endpoint_port() const noexcept {
+ SW_DEPRECATED unsigned short remote_endpoint_port() const noexcept {
try {
return endpoint.port();
}
diff --git a/utility.hpp b/utility.hpp
index d9119de..cac7dfa 100644
--- a/utility.hpp
+++ b/utility.hpp
@@ -12,13 +12,13 @@
#include <string>
#include <unordered_map>
-#ifndef DEPRECATED
+#ifndef SW_DEPRECATED
#if defined(__GNUC__) || defined(__clang__)
-#define DEPRECATED __attribute__((deprecated))
+#define SW_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
-#define DEPRECATED __declspec(deprecated)
+#define SW_DEPRECATED __declspec(deprecated)
#else
-#define DEPRECATED
+#define SW_DEPRECATED
#endif
#endif