mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Remove unneeded checks for snprintf
snprintf is a standard function which should be available on all relevant platforms, so those checks are unnecessary. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
f627b95a4c
commit
b3327f4e90
@ -105,11 +105,6 @@ set(include_files_list
|
||||
)
|
||||
check_includes(include_files_list)
|
||||
|
||||
set(functions_list
|
||||
snprintf
|
||||
)
|
||||
check_functions(functions_list)
|
||||
|
||||
set(types_list
|
||||
"long long int"
|
||||
off_t
|
||||
|
@ -338,7 +338,6 @@ dnl ********************
|
||||
OLD_CXXFLAGS=$CXXFLAGS
|
||||
AC_MSG_CHECKING([whether compiler supports C++11])
|
||||
CXXFLAGS="$CXXFLAGS -std=c++11"
|
||||
snprintfworks=no
|
||||
AC_COMPILE_IFELSE(
|
||||
[
|
||||
AC_LANG_SOURCE([[
|
||||
@ -353,7 +352,6 @@ AC_COMPILE_IFELSE(
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([Your compiler does not have the necessary c++11 support! Cannot proceed.])
|
||||
])
|
||||
AC_CHECK_FUNCS([snprintf],, [snprintfworks=yes])
|
||||
CXXFLAGS="$OLD_CXXFLAGS"
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user