1
0
Fork 0
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:
cosmy1 2015-07-31 14:20:58 +02:00
parent 01ece12668
commit fe63724d53

View file

@ -129,7 +129,11 @@ void generic_get_cpu_list(const struct match_entry_t* matchtable, int count,
break; break;
} }
if (!good) continue; if (!good) continue;
#ifdef _MSC_VER
list->names[n++] = _strdup(matchtable[i].name);
#else
list->names[n++] = strdup(matchtable[i].name); list->names[n++] = strdup(matchtable[i].name);
#endif
} }
list->num_entries = n; list->num_entries = n;
} }