mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
check for ICONV_CONST
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14675 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0ca50d9637
commit
d308909bee
@ -115,6 +115,15 @@ check_cxx_source_compiles(
|
||||
"
|
||||
CXX_GLOBAL_CSTD)
|
||||
|
||||
check_cxx_source_compiles(
|
||||
"
|
||||
#include <iconv.h>
|
||||
// this declaration will fail when there already exists a non const char** version which returns size_t
|
||||
double iconv(iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
|
||||
int main() { return 0; }
|
||||
"
|
||||
HAVE_ICONV_CONST)
|
||||
|
||||
set(PACKAGE lyx)
|
||||
set(PACKAGE_VERSION 1.5.0svn)
|
||||
|
||||
|
@ -93,6 +93,12 @@
|
||||
#cmakedefine HAVE_ASPELL_ASPELL_H 1
|
||||
#cmakedefine HAVE_ASPELL_H 1
|
||||
|
||||
#cmakedefine HAVE_ICONV_CONST 1
|
||||
#ifdef HAVE_ICONV_CONST
|
||||
#define ICONV_CONST const
|
||||
#else
|
||||
#define ICONV_CONST
|
||||
#endif
|
||||
|
||||
#cmakedefine PACKAGE "${PACKAGE}"
|
||||
#cmakedefine PACKAGE_VERSION ${PACKAGE_VERSION}
|
||||
|
Loading…
Reference in New Issue
Block a user