diff options
| author | 2025-04-12 16:53:23 +0100 | |
|---|---|---|
| committer | 2025-04-12 16:53:23 +0100 | |
| commit | dac1ed6d7f61ceac6e08e111e522548edcdb0271 (patch) | |
| tree | 2bfcb2378f1a08818c3fa39b7a9850f90e7ae73d /src/modules | |
| parent | Allow building the httpd module against the system http_parser lib. (diff) | |
Allow building the websocket module against the system utfcpp lib.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_websocket.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/modules/m_websocket.cpp b/src/modules/m_websocket.cpp index bbdc26eec..7a8630903 100644 --- a/src/modules/m_websocket.cpp +++ b/src/modules/m_websocket.cpp @@ -19,6 +19,14 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/// $CompilerFlags: require_environment("SYSTEM_UTFCPP" "1") -DUSE_SYSTEM_UTFCPP + + +#ifdef USE_SYSTEM_UTFCPP +# include <utf8cpp/utf8/unchecked.h> +#else +# include <utfcpp/unchecked.h> +#endif #include "inspircd.h" #include "extension.h" @@ -28,9 +36,6 @@ #include "modules/whois.h" #include "utility/string.h" -#define UTF_CPP_CPLUSPLUS 199711L -#include <utfcpp/unchecked.h> - static constexpr char MagicGUID[] = "258EAFA5-E914-47DA-95CA-C5AB0DC85B11"; static constexpr char newline[] = "\r\n"; static constexpr char whitespace[] = " \t"; |
