~singpolyma/biboumi

5cb81cace08b016f50708bb8ef718e07865b435a — Florent Le Coz 10 years ago ef014f7
And actually use the values found by cmake
3 files changed, 5 insertions(+), 0 deletions(-)

M CMakeLists.txt
A config.h.cmake
M src/utils/encoding.cpp
M CMakeLists.txt => CMakeLists.txt +2 -0
@@ 80,3 80,5 @@ target_link_libraries(test
  irc
  bridge
  utils)

CONFIGURE_FILE(config.h.cmake config.h @ONLY)

A config.h.cmake => config.h.cmake +1 -0
@@ 0,0 1,1 @@
#cmakedefine ICONV_SECOND_ARGUMENT_IS_CONST

M src/utils/encoding.cpp => src/utils/encoding.cpp +2 -0
@@ 7,6 7,8 @@
#include <string.h>
#include <iconv.h>

#include "config.h"

/**
 * The UTF-8-encoded character used as a place holder when a character conversion fails.
 * This is U+FFFD � "replacement character"