mirror of
https://github.com/google/cpu_features.git
synced 2025-04-28 07:23:37 +02:00
Fixing MSVC build.
This commit is contained in:
parent
4189efff92
commit
6395af0fc6
@ -39,7 +39,7 @@ static int cmp(const void* p1, const void* p2) {
|
|||||||
#define DEFINE_PRINT_FLAGS(HasFeature, FeatureName, FeatureType, LastEnum) \
|
#define DEFINE_PRINT_FLAGS(HasFeature, FeatureName, FeatureType, LastEnum) \
|
||||||
void PrintFlags(const FeatureType* features) { \
|
void PrintFlags(const FeatureType* features) { \
|
||||||
size_t i; \
|
size_t i; \
|
||||||
const char* ptrs[LastEnum] = {}; \
|
const char* ptrs[LastEnum] = {0}; \
|
||||||
size_t count = 0; \
|
size_t count = 0; \
|
||||||
for (i = 0; i < LastEnum; ++i) { \
|
for (i = 0; i < LastEnum; ++i) { \
|
||||||
if (HasFeature(features, i)) { \
|
if (HasFeature(features, i)) { \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user