cmake HAVE_ICONV_CONST examples

supertuxkart/stk-code lib/tinygettext/CMakeLists.txt :63

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
)

supertuxkart/stk-code lib/tinygettext/CMakeLists.txt :76

add_definitions(-DHAVE_ICONV_CONST)

supertuxkart/stk-code lib/tinygettext/CMakeLists.txt :77

else(HAVE_ICONV_CONST)

supertuxkart/stk-code lib/tinygettext/CMakeLists.txt :78

remove_definitions(-DHAVE_ICONV_CONST)

supertuxkart/stk-code lib/tinygettext/CMakeLists.txt :79

endif(HAVE_ICONV_CONST)