mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-03 11:44:18 +01:00
Global: remove #ifndef FF_INCLUDED_* guards
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef FF_INCLUDED_FFLIST
|
||||
#define FF_INCLUDED_FFLIST
|
||||
|
||||
#include "FFcheckmacros.h"
|
||||
|
||||
#include <stdbool.h>
|
||||
@@ -109,5 +106,3 @@ static inline void ffListClear(FFlist* list)
|
||||
assert((listVar).capacity > (index)); \
|
||||
(itemType*)(listVar).data + (index); \
|
||||
})
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef FF_INCLUDED_EDID_HELPER_H
|
||||
#define FF_INCLUDED_EDID_HELPER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "util/FFstrbuf.h"
|
||||
|
||||
@@ -11,5 +8,3 @@ bool ffEdidGetName(const uint8_t edid[128], FFstrbuf* name);
|
||||
void ffEdidGetPhysicalResolution(const uint8_t edid[128], uint32_t* width, uint32_t* height);
|
||||
void ffEdidGetPhysicalSize(const uint8_t edid[128], uint32_t* width, uint32_t* height); // in mm
|
||||
bool ffEdidGetHdrCompatible(const uint8_t* edid, uint32_t length);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef FF_INCLUDED_util_platform_FFPlatform
|
||||
#define FF_INCLUDED_util_platform_FFPlatform
|
||||
|
||||
#include "util/FFstrbuf.h"
|
||||
#include "util/FFlist.h"
|
||||
|
||||
@@ -28,5 +25,3 @@ typedef struct FFPlatform {
|
||||
|
||||
void ffPlatformInit(FFPlatform* platform);
|
||||
void ffPlatformDestroy(FFPlatform* platform);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef FF_INCLUDED_util_platform_FFPlatform_private
|
||||
#define FF_INCLUDED_util_platform_FFPlatform_private
|
||||
|
||||
#include "FFPlatform.h"
|
||||
|
||||
void ffPlatformInitImpl(FFPlatform* platform);
|
||||
|
||||
void ffPlatformPathAddAbsolute(FFlist* dirs, const char* path);
|
||||
void ffPlatformPathAddHome(FFlist* dirs, const FFPlatform* platform, const char* suffix);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef FF_INCLUDED_util_stringUtils_h
|
||||
#define FF_INCLUDED_util_stringUtils_h
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
@@ -47,5 +44,3 @@ static inline bool ffStrEquals(const char* str, const char* compareTo)
|
||||
{
|
||||
return strcmp(str, compareTo) == 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef FF_INCLUDED_UTIL_WCWIDTH_H
|
||||
#define FF_INCLUDED_UTIL_WCWIDTH_H
|
||||
|
||||
#include <wchar.h>
|
||||
|
||||
#ifdef FF_HAVE_WCWIDTH
|
||||
@@ -17,5 +14,3 @@ static inline int mk_wcswidth(const wchar_t *pwcs, size_t n) {
|
||||
int mk_wcwidth(wchar_t ucs);
|
||||
int mk_wcswidth(const wchar_t *pwcs, size_t n);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef FF_INCLUDED_util_windows_com
|
||||
#define FF_INCLUDED_util_windows_com
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
#include <unknwn.h>
|
||||
@@ -21,5 +18,3 @@ static inline void ffReleaseComObject(void* ppUnknown)
|
||||
// Win32 COM headers requires C++ compiler
|
||||
#error Must be included in C++ source file
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef FF_INCLUDED_util_windows_wmi
|
||||
#define FF_INCLUDED_util_windows_wmi
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern "C" {
|
||||
@@ -215,5 +212,3 @@ struct FFWmiQuery
|
||||
// Win32 COM headers requires C++ compiler
|
||||
#error Must be included in C++ source file
|
||||
#endif //__cplusplus
|
||||
|
||||
#endif //FF_INCLUDED_util_windows_wmi
|
||||
|
||||
Reference in New Issue
Block a user