From cf6f3dbe0cc58b873d926c0889f86a5296b61190 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Wed, 31 Jan 2024 13:29:11 +0800 Subject: [PATCH] CI (Windows): fix build --- src/detection/gpu/gpu.c | 2 ++ src/detection/gpu/gpu.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/detection/gpu/gpu.c b/src/detection/gpu/gpu.c index 310f526f0..7368d3039 100644 --- a/src/detection/gpu/gpu.c +++ b/src/detection/gpu/gpu.c @@ -119,6 +119,7 @@ const char* ffDetectGPU(const FFGPUOptions* options, FFlist* result) return "GPU detection failed"; } +#ifndef _WIN32 void ffGPUParsePciIds(FFstrbuf* content, uint8_t subclass, uint16_t vendor, uint16_t device, FFGPUResult* gpu) { if (content->length) @@ -188,3 +189,4 @@ void ffGPUParsePciIds(FFstrbuf* content, uint8_t subclass, uint16_t vendor, uint ffStrbufSetF(&gpu->name, "%s Device %04X%s", gpu->vendor.length ? gpu->vendor.chars : "Unknown", device, subclassStr); } } +#endif diff --git a/src/detection/gpu/gpu.h b/src/detection/gpu/gpu.h index 69f0f6eb1..b3d6b035f 100644 --- a/src/detection/gpu/gpu.h +++ b/src/detection/gpu/gpu.h @@ -42,4 +42,7 @@ const char* ffDetectGPU(const FFGPUOptions* options, FFlist* result); const char* ffDetectGPUImpl(const FFGPUOptions* options, FFlist* gpus); const char* ffGetGPUVendorString(unsigned vendorId); + +#ifndef _WIN32 void ffGPUParsePciIds(FFstrbuf* content, uint8_t subclass, uint16_t vendor, uint16_t device, FFGPUResult* gpu); +#endif