Clean up includes

This commit is contained in:
Linus Dierheimer
2022-06-18 14:25:31 +02:00
parent f35dc9f46a
commit fe71291769
45 changed files with 70 additions and 50 deletions
-1
View File
@@ -1,7 +1,6 @@
#include "fastfetch.h"
#include <time.h>
#include <pthread.h>
const FFDateTimeResult* ffDetectDateTime(const FFinstance* instance)
@@ -1,4 +1,5 @@
#include "displayServer.h"
#include <pthread.h>
#include <dirent.h>
+4 -1
View File
@@ -1,9 +1,12 @@
#include "displayServer.h"
#include <stdlib.h>
#include <string.h>
#ifdef FF_HAVE_WAYLAND
#include <wayland-client.h>
#include <pthread.h>
#include <dlfcn.h>
#include <wayland-client.h>
typedef struct WaylandData
{
+4 -2
View File
@@ -1,8 +1,10 @@
#include "displayServer.h"
#include <dirent.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#include <ctype.h>
#include <dirent.h>
static const char* parseEnv()
{
+3 -1
View File
@@ -1,8 +1,10 @@
#include "displayServer.h"
#ifdef FF_HAVE_XCB
#include <xcb/xcb.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>
#include <xcb/xcb.h>
typedef struct XcbPropertyData
{
+1
View File
@@ -1,6 +1,7 @@
#include "displayServer.h"
#ifdef FF_HAVE_X11
#include <dlfcn.h>
#include <X11/Xlib.h>
typedef struct X11PropertyData
+1
View File
@@ -7,6 +7,7 @@
#define FF_DBUS_TIMEOUT_MILLISECONDS 35
#ifdef FF_HAVE_DBUS
#include <dlfcn.h>
#include <dbus/dbus.h>
#define FF_DBUS_ITER_CONTINUE(iterator) \
+1
View File
@@ -1,6 +1,7 @@
#include "fastfetch.h"
#include <string.h>
#include <stdlib.h>
#include <pthread.h>
#if !defined(__ANDROID__)
+1
View File
@@ -1,5 +1,6 @@
#include "fastfetch.h"
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
+1 -2
View File
@@ -1,9 +1,8 @@
#include "fastfetch.h"
#include <string.h>
#include <pthread.h>
#include <dirent.h>
#include <string.h>
#include <math.h>
static bool isTempFile(const char* name)
{
+1
View File
@@ -2,6 +2,7 @@
#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
+2
View File
@@ -3,6 +3,8 @@
#include <pthread.h>
#ifdef FF_HAVE_VULKAN
#include <stdlib.h>
#include <dlfcn.h>
#include <vulkan/vulkan.h>
static inline void applyVulkanVersion(uint32_t vulkanVersion, FFVersion* ffVersion)