mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-27 21:39:34 +00:00
Add CTPP2 patch to correctly handle ICONV_SUPPORT variable.
If there is no ICONV_SUPPORT, we must not try to compile stuff relative to iconv.
This commit is contained in:
20
patches/ctpp2_iconv_support.patch
Normal file
20
patches/ctpp2_iconv_support.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff -ur ctpp2-2.8.3/src/CTPP2StringIconvOutputCollector.cpp ctpp2-2.8.3.iconv/src/CTPP2StringIconvOutputCollector.cpp
|
||||
--- ctpp2-2.8.3/src/CTPP2StringIconvOutputCollector.cpp 2017-02-07 10:42:40.567806420 +0100
|
||||
+++ ctpp2-2.8.3.iconv/src/CTPP2StringIconvOutputCollector.cpp 2017-01-30 15:22:19.734186564 +0100
|
||||
@@ -38,6 +38,8 @@
|
||||
namespace CTPP // C++ Template Engine
|
||||
{
|
||||
|
||||
+
|
||||
+#ifdef ICONV_SUPPORT
|
||||
//
|
||||
// Constructor
|
||||
//
|
||||
@@ -114,5 +116,7 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
+#endif //ICONV_SUPPORT
|
||||
+
|
||||
} // namespace CTPP
|
||||
// End.
|
Reference in New Issue
Block a user