mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-17 09:48:11 +08:00
libiconv - Fix ICONV_CONST (#9832)
* libiconv - Fix ICONV_CONST * Remove "const" from the second argument of "iconv"
This commit is contained in:
commit
2e2c07338f
@ -15,6 +15,7 @@ if(WIN32)
|
||||
set(USE_MBSTATE_T "0 /*USE_MBSTATE_T*/")
|
||||
set(BROKEN_WCHAR_H "0 /*BROKEN_WCHAR_H*/")
|
||||
set(HAVE_VISIBILITY "0 /*HAVE_VISIBILITY*/")
|
||||
set(ICONV_CONST "")
|
||||
|
||||
configure_file(config.h.in config.h)
|
||||
file(READ "${CMAKE_CURRENT_BINARY_DIR}/config.h" _contents)
|
||||
@ -22,7 +23,7 @@ if(WIN32)
|
||||
string(REPLACE "#undef HAVE_MBRTOWC" "#define HAVE_MBRTOWC 1" _contents "${_contents}")
|
||||
string(REPLACE "#undef HAVE_MBSINIT" "#define HAVE_MBSINIT 1" _contents "${_contents}")
|
||||
string(REPLACE "#undef HAVE_WCRTOMB" "#define HAVE_WCRTOMB 1" _contents "${_contents}")
|
||||
string(REPLACE "#undef ICONV_CONST" "#define ICONV_CONST const" _contents "${_contents}")
|
||||
string(REPLACE "#undef ICONV_CONST" "#define ICONV_CONST ${ICONV_CONST}" _contents "${_contents}")
|
||||
string(REPLACE "#undef EILSEQ" "" _contents "${_contents}")
|
||||
string(REPLACE "#undef WORDS_LITTLEENDIAN" "#define WORDS_LITTLEENDIAN 1" _contents "${_contents}")
|
||||
string(REPLACE "#undef ENABLE_RELOCATABLE" "#define ENABLE_RELOCATABLE 1" _contents "${_contents}")
|
||||
|
@ -1,4 +1,4 @@
|
||||
Source: libiconv
|
||||
Version: 1.16-1
|
||||
Version: 1.16-2
|
||||
Homepage: https://www.gnu.org/software/libiconv/
|
||||
Description: GNU Unicode text conversion
|
||||
|
Loading…
x
Reference in New Issue
Block a user