mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 04:54:19 -04:00
Silence some MSVC security warnings by replacing strdup() with _strdup().
Backported from taglib2.
This commit is contained in:
@ -190,6 +190,16 @@ if(NOT HAVE_VSNPRINTF)
|
||||
" HAVE_VSPRINTF_S)
|
||||
endif()
|
||||
|
||||
# Determine whether your compiler supports ISO _strdup.
|
||||
|
||||
check_cxx_source_compiles("
|
||||
#include <cstring>
|
||||
int main() {
|
||||
_strdup(0);
|
||||
return 0;
|
||||
}
|
||||
" HAVE_ISO_STRDUP)
|
||||
|
||||
# Check for libz using the cmake supplied FindZLIB.cmake
|
||||
|
||||
if(NOT ZLIB_SOURCE)
|
||||
|
Reference in New Issue
Block a user