Refactor: move library functions and macros to own header

This commit is contained in:
Linus Dierheimer
2022-07-25 11:20:38 +02:00
parent 986bbeebb3
commit f18ffe3239
16 changed files with 43 additions and 36 deletions
+1 -1
View File
@@ -61,9 +61,9 @@ static void printGPUList(FFinstance* instance, const FFlist* list)
}
#ifdef FF_HAVE_LIBPCI
#include "common/library.h"
#include <string.h>
#include <unistd.h>
#include <dlfcn.h>
#include <pci/pci.h>
//see https://github.com/pciutils/pciutils/blob/5bdf63b6b1bc35b59c4b3f47f7ca83ca1868155b/ls-kernel.c#L220
+1 -1
View File
@@ -4,7 +4,7 @@
#define FF_OPENCL_NUM_FORMAT_ARGS 3
#ifdef FF_HAVE_OPENCL
#include <dlfcn.h>
#include "common/library.h"
#define CL_TARGET_OPENCL_VERSION 100
#include <CL/cl.h>
+1 -1
View File
@@ -7,7 +7,7 @@
#if defined(FF_HAVE_EGL) || defined(FF_HAVE_GLX) || defined(FF_HAVE_OSMESA)
#define FF_HAVE_GL 1
#include <dlfcn.h>
#include "common/library.h"
#include <GL/gl.h>
#define FF_OPENGL_BUFFER_WIDTH 1
+1 -1
View File
@@ -130,7 +130,7 @@ static uint32_t getNixPackages(char* path)
}
#ifdef FF_HAVE_RPM
#include <dlfcn.h>
#include "common/library.h"
#include <rpm/rpmlib.h>
#include <rpm/rpmts.h>
#include <rpm/rpmdb.h>