From 5cb81cace08b016f50708bb8ef718e07865b435a Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sun, 10 Nov 2013 03:29:12 +0100 Subject: And actually use the values found by cmake --- CMakeLists.txt | 2 ++ config.h.cmake | 1 + src/utils/encoding.cpp | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 config.h.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index f651723..b0d2801 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,3 +80,5 @@ target_link_libraries(test irc bridge utils) + +CONFIGURE_FILE(config.h.cmake config.h @ONLY) diff --git a/config.h.cmake b/config.h.cmake new file mode 100644 index 0000000..5f0a3cb --- /dev/null +++ b/config.h.cmake @@ -0,0 +1 @@ +#cmakedefine ICONV_SECOND_ARGUMENT_IS_CONST diff --git a/src/utils/encoding.cpp b/src/utils/encoding.cpp index 2a6aecb..2d95132 100644 --- a/src/utils/encoding.cpp +++ b/src/utils/encoding.cpp @@ -7,6 +7,8 @@ #include #include +#include "config.h" + /** * The UTF-8-encoded character used as a place holder when a character conversion fails. * This is U+FFFD � "replacement character" -- cgit v1.2.3