aboutsummaryrefslogtreecommitdiff
path: root/modules/websocket.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-04-13 17:03:08 +0100
committerGravatar Sadie Powell2025-04-13 17:03:08 +0100
commitd0e321b92c55902ccb3ca98ddd8553cb57e55c77 (patch)
treed7e0f9cdbe7d292b8409b0156da449eb9299c74e /modules/websocket.cpp
parentMerge branch 'insp4' into master. (diff)
parentRemove the {fmt} headers that we don't use. (diff)
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/websocket.cpp')
-rw-r--r--modules/websocket.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/websocket.cpp b/modules/websocket.cpp
index 4212b9611..fdf91fbe0 100644
--- a/modules/websocket.cpp
+++ b/modules/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";