fix: define UTF_CPP_CPLUSPLUS for #include utf8.h (#2625)

Fixes #2256. This ensures that utfcpp's c++17 code is enabled.
This commit is contained in:
Charles Kerr 2022-02-14 11:54:32 -06:00 committed by GitHub
parent 0a27346efb
commit f78727a4c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,9 @@
#include <iconv.h>
#endif
#define UTF_CPP_CPLUSPLUS 201703L
#include <utf8.h>
#include <event2/buffer.h>
#include <event2/event.h>

View File

@ -11,8 +11,10 @@
#include <deque>
#include <string_view>
#define UTF_CPP_CPLUSPLUS 201703L
#include <utf8.h>
#include <event2/buffer.h> /* evbuffer_add() */
#include <event2/buffer.h>
#define LIBTRANSMISSION_VARIANT_MODULE