mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
MSVC warning fix
using _strdup instead of strdup on Visual C++
This commit is contained in:
parent
01ece12668
commit
fe63724d53
1 changed files with 4 additions and 0 deletions
|
@ -129,7 +129,11 @@ void generic_get_cpu_list(const struct match_entry_t* matchtable, int count,
|
|||
break;
|
||||
}
|
||||
if (!good) continue;
|
||||
#ifdef _MSC_VER
|
||||
list->names[n++] = _strdup(matchtable[i].name);
|
||||
#else
|
||||
list->names[n++] = strdup(matchtable[i].name);
|
||||
#endif
|
||||
}
|
||||
list->num_entries = n;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue