Browse Source

[Minor] Fix build

tags/3.1
Vsevolod Stakhov 2 years ago
parent
commit
1e73c009de
2 changed files with 8 additions and 2 deletions
  1. 7
    2
      contrib/replxx/src/conversion.hxx
  2. 1
    0
      contrib/replxx/src/unicodestring.hxx

+ 7
- 2
contrib/replxx/src/conversion.hxx View File

@@ -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;

+ 1
- 0
contrib/replxx/src/unicodestring.hxx View File

@@ -3,6 +3,7 @@

#include <vector>
#include <cstring>
#include <string>

#include "conversion.hxx"


Loading…
Cancel
Save