1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-10 22:59:13 +00:00

Merge pull request #20 from cosmy1/master

MSVC warning fix
This commit is contained in:
Veselin Georgiev 2015-07-31 15:26:43 +03:00
commit 81128e2384

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;
#if defined(_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;
} }