aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/replxx/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-24 16:21:23 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-08-24 16:21:23 +0100
commit1e73c009deec41444f1c3ed24f61c9960e219186 (patch)
treed41ba7447e0434d5dbdd9a3125f2590b57bf2b0c /contrib/replxx/src
parent2802836b8a2fb32ed46f943d96d882633b714196 (diff)
downloadrspamd-1e73c009deec41444f1c3ed24f61c9960e219186.tar.gz
rspamd-1e73c009deec41444f1c3ed24f61c9960e219186.zip
[Minor] Fix build
Diffstat (limited to 'contrib/replxx/src')
-rw-r--r--contrib/replxx/src/conversion.hxx9
-rw-r--r--contrib/replxx/src/unicodestring.hxx1
2 files changed, 8 insertions, 2 deletions
diff --git a/contrib/replxx/src/conversion.hxx b/contrib/replxx/src/conversion.hxx
index 6587ad0e2..05ea64fd2 100644
--- a/contrib/replxx/src/conversion.hxx
+++ b/contrib/replxx/src/conversion.hxx
@@ -1,14 +1,19 @@
#ifndef REPLXX_CONVERSION_HXX_INCLUDED
#define REPLXX_CONVERSION_HXX_INCLUDED 1
-#include "ConvertUTF.h"
-
#ifdef __has_include
#if __has_include( <version> )
#include <version>
#endif
#endif
+typedef enum {
+ conversionOK, /* conversion successful */
+ sourceExhausted, /* partial character in source, but hit end */
+ targetExhausted, /* insuff. room in target for conversion */
+ sourceIllegal /* source sequence is illegal/malformed */
+} ConversionResult;
+
#if ! ( defined( __cpp_lib_char8_t ) || ( defined( __clang_major__ ) && ( __clang_major__ >= 8 ) && ( __cplusplus > 201703L ) ) )
namespace replxx {
typedef unsigned char char8_t;
diff --git a/contrib/replxx/src/unicodestring.hxx b/contrib/replxx/src/unicodestring.hxx
index 22f3e4695..8ff98a729 100644
--- a/contrib/replxx/src/unicodestring.hxx
+++ b/contrib/replxx/src/unicodestring.hxx
@@ -3,6 +3,7 @@
#include <vector>
#include <cstring>
+#include <string>
#include "conversion.hxx"