check_function_exists(realloc HAVE_REALLOC)
check_function_exists(setenv HAVE_DECL_SETENV)
check_function_exists(sigaction HAVE_SIGACTION)
-check_function_exists(snprintf HAVE_SNPRINTF)
check_function_exists(strdup HAVE_DECL_STRDUP)
check_function_exists(strsignal HAVE_DECL_STRSIGNAL)
check_function_exists(_getpid HAVE__GETPID)
check_function_exists(_localtime64_s HAVE__LOCALTIME64_S)
check_function_exists(_strdup HAVE__STRDUP)
+# printf related checks
+check_function_exists(snprintf HAVE_SNPRINTF)
+check_function_exists(vsnprintf HAVE_VSNPRINTF)
+check_function_exists(vasnprintf HAVE_VASNPRINTF)
+check_function_exists(asprintf HAVE_ASPRINTF)
+check_function_exists(vasprintf HAVE_VASPRINTF)
+
if(HAVE_FORK)
add_definitions(-DHAVE_FORK=1)
set(HAVE_FORK 1)