mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Reorder CMake checks for sprintf() variants.
VS2015 has snprintf(), however sprintf_s() is still recommended.
This commit is contained in:
parent
3142330bee
commit
c69364d831
@ -211,20 +211,20 @@ check_cxx_source_compiles("
|
||||
#include <cstdio>
|
||||
int main() {
|
||||
char buf[20];
|
||||
snprintf(buf, 20, \"%d\", 1);
|
||||
sprintf_s(buf, \"%d\", 1);
|
||||
return 0;
|
||||
}
|
||||
" HAVE_SNPRINTF)
|
||||
" HAVE_SPRINTF_S)
|
||||
|
||||
if(NOT HAVE_SNPRINTF)
|
||||
if(NOT HAVE_SPRINTF_S)
|
||||
check_cxx_source_compiles("
|
||||
#include <cstdio>
|
||||
int main() {
|
||||
char buf[20];
|
||||
sprintf_s(buf, \"%d\", 1);
|
||||
snprintf(buf, 20, \"%d\", 1);
|
||||
return 0;
|
||||
}
|
||||
" HAVE_SPRINTF_S)
|
||||
" HAVE_SNPRINTF)
|
||||
endif()
|
||||
|
||||
# Check for libz using the cmake supplied FindZLIB.cmake
|
||||
|
Loading…
Reference in New Issue
Block a user