diff options
author | eidheim <eidheim@gmail.com> | 2022-05-31 16:13:11 +0300 |
---|---|---|
committer | eidheim <eidheim@gmail.com> | 2022-05-31 16:13:11 +0300 |
commit | 293a407f39fe50e285c8599b3d98a7da25371d20 (patch) | |
tree | af85a16dd20d5aea3b9ee417d48687e7c1d0e1fa | |
parent | 571687c43c838f5f633f068b987e57a871597251 (diff) |
Renamed DEPRECATED to SW_DEPRECATED to avoid name conflicts
-rw-r--r-- | server_ws.hpp | 4 | ||||
-rw-r--r-- | utility.hpp | 8 |
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 |