aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author0xd34df00d <[email protected]>2019-09-22 12:26:11 +0000
committerGitHub <[email protected]>2019-09-22 12:26:11 +0000
commite96aeeb14dc51deeea70e6fdffa95f80af78fdfc (patch)
tree6759373327154295a77103041ba95ef0907a7b47
parentSimplified IMAP parser objects. (diff)
downloadvmime-e96aeeb14dc51deeea70e6fdffa95f80af78fdfc.tar.gz
vmime-e96aeeb14dc51deeea70e6fdffa95f80af78fdfc.zip
Avoid extern "C" blocks around ICU includes
Looks like it's not necessary, and, moreover, I'm getting this with recent ICU (64.2): ``` /usr/include/unicode/localpointer.h:67:1: error: template with C linkage 67 | template<typename T> | ^~~~~~~~ /var/tmp/portage/dev-libs/vmime-9999/work/vmime-9999/src/vmime/charsetConverter_icu.cpp:37:1: note: ‘extern "C"’ linkage started here 37 | extern "C" { | ^~~~~~~~~~ ``` (there's also an issue about that, #218)
-rw-r--r--src/vmime/charsetConverter_icu.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vmime/charsetConverter_icu.cpp b/src/vmime/charsetConverter_icu.cpp
index a7dd474c..55195b78 100644
--- a/src/vmime/charsetConverter_icu.cpp
+++ b/src/vmime/charsetConverter_icu.cpp
@@ -34,15 +34,12 @@
#include "vmime/utility/outputStreamStringAdapter.hpp"
-extern "C" {
-
#ifndef VMIME_BUILDING_DOC
#include <unicode/ucnv.h>
#include <unicode/ucnv_err.h>
#endif // VMIME_BUILDING_DOC
-}
#include <unicode/unistr.h>