mingw: enable asprintf

This commit is contained in:
Dominik Schmidt 2012-02-20 17:07:21 +01:00 committed by Andreas Schneider
parent 674aa7cd64
commit dd9b73f383

View file

@ -39,6 +39,13 @@ if (HAVE_LIBDL)
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${DLFCN_LIBRARY})
endif (HAVE_LIBDL)
check_function_exists(asprintf HAVE_ASPRINTF)
if(NOT HAVE_ASPRINTF)
if(MINGW)
add_definitions( -D__USE_MINGW_ANSI_STDIO=1 )
endif()
endif()
check_function_exists(strerror_r HAVE_STRERROR_R)
set(CSYNC_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "csync required system libraries")