GPU: fix compiling error when -DCUSTOM_PCI_IDS_PATH is used

This commit is contained in:
李通洲
2024-09-27 00:00:04 +08:00
parent 745c041b44
commit 78fc5a2b5d
+4 -1
View File
@@ -10,6 +10,9 @@
#include "fastfetch_pciids.c.inc"
#endif
#define FF_STR_INDIR(x) #x
#define FF_STR(x) FF_STR_INDIR(x)
static const FFstrbuf* loadPciIds()
{
static FFstrbuf pciids;
@@ -19,7 +22,7 @@ static const FFstrbuf* loadPciIds()
#ifdef FF_CUSTOM_PCI_IDS_PATH
ffReadFileBuffer(FF_STR(FF_CUSTOM_PCI_IDS_PATH), pciids);
ffReadFileBuffer(FF_STR(FF_CUSTOM_PCI_IDS_PATH), &pciids);
#else // FF_CUSTOM_PCI_IDS_PATH