diff --git a/src/detection/displayserver/linux/displayserver_linux.h b/src/detection/displayserver/linux/displayserver_linux.h index b52b35b45..5452711e7 100644 --- a/src/detection/displayserver/linux/displayserver_linux.h +++ b/src/detection/displayserver/linux/displayserver_linux.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_DISPLAYSERVER -#define FASTFETCH_INCLUDED_DISPLAYSERVER - #include "detection/displayserver/displayserver.h" const char* ffdsConnectWayland(FFDisplayServerResult* result); @@ -18,5 +15,3 @@ const char* ffdsConnectDrm(FFDisplayServerResult* result); void ffdsDetectWMDE(FFDisplayServerResult* result); FFDisplayType ffdsGetDisplayType(const char* drmConnectorName); - -#endif diff --git a/src/detection/wmtheme/wmtheme.h b/src/detection/wmtheme/wmtheme.h index baf3e1ede..a737a7aea 100644 --- a/src/detection/wmtheme/wmtheme.h +++ b/src/detection/wmtheme/wmtheme.h @@ -1,10 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_detection_wmtheme -#define FASTFETCH_INCLUDED_detection_wmtheme - #include "fastfetch.h" bool ffDetectWmTheme(FFstrbuf* themeOrError); - -#endif diff --git a/src/fastfetch.h b/src/fastfetch.h index dfc736434..0d7a9a5d5 100644 --- a/src/fastfetch.h +++ b/src/fastfetch.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED -#define FASTFETCH_INCLUDED - #include "fastfetch_config.h" #include @@ -80,5 +77,3 @@ void ffLogoPrintLine(); void ffLogoBuiltinPrint(); void ffLogoBuiltinList(); void ffLogoBuiltinListAutocompletion(); - -#endif diff --git a/src/fastfetch_config.h.in b/src/fastfetch_config.h.in index 6d86f3e0b..03b8f57a0 100644 --- a/src/fastfetch_config.h.in +++ b/src/fastfetch_config.h.in @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INDLUDED_fastfetch_config_h_in -#define FASTFETCH_INDLUDED_fastfetch_config_h_in - #define FASTFETCH_PROJECT_NAME "@PROJECT_NAME@" #define FASTFETCH_PROJECT_VERSION "@PROJECT_VERSION@" #define FASTFETCH_PROJECT_VERSION_MAJOR @PROJECT_VERSION_MAJOR@ @@ -22,5 +19,3 @@ #define FASTFETCH_TARGET_DIR_ETC "@TARGET_DIR_ETC@" #define FASTFETCH_TARGET_DIR_INSTALL_SYSCONF "@CMAKE_INSTALL_SYSCONFDIR@" - -#endif // FASTFETCH_INDLUDED_fastfetch_config_h_in diff --git a/src/fastfetch_datatext.h.in b/src/fastfetch_datatext.h.in index 647c7c7b0..894f34488 100644 --- a/src/fastfetch_datatext.h.in +++ b/src/fastfetch_datatext.h.in @@ -1,13 +1,8 @@ #pragma once -#ifndef FASTFETCH_INDLUDED_fastfetch_datatext_h_in -#define FASTFETCH_INDLUDED_fastfetch_datatext_h_in - #define FASTFETCH_DATATEXT_JSON_HELP @DATATEXT_JSON_HELP@ #define FASTFETCH_DATATEXT_STRUCTURE @DATATEXT_STRUCTURE@ #define FASTFETCH_DATATEXT_HELP_FOOTER @DATATEXT_HELP_FOOTER@ #define FASTFETCH_DATATEXT_HELP_COLOR @DATATEXT_HELP_COLOR@ #define FASTFETCH_DATATEXT_HELP_FORMAT @DATATEXT_HELP_FORMAT@ #define FASTFETCH_DATATEXT_HELP_CONFIG @DATATEXT_HELP_CONFIG@ - -#endif diff --git a/src/logo/logo.h b/src/logo/logo.h index bbdcdbe38..e9bea9788 100644 --- a/src/logo/logo.h +++ b/src/logo/logo.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_LOGO_logo -#define FASTFETCH_INCLUDED_LOGO_logo - #include "fastfetch.h" typedef enum FFLogoLineType @@ -31,5 +28,3 @@ extern const FFlogo ffLogoUnknown; //image/image.c bool ffLogoPrintImageIfExists(FFLogoType type, bool printError); - -#endif diff --git a/src/util/FFcheckmacros.h b/src/util/FFcheckmacros.h index 9eb45f78c..4a6243a72 100644 --- a/src/util/FFcheckmacros.h +++ b/src/util/FFcheckmacros.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_FFCHECKMACROS -#define FASTFETCH_INCLUDED_FFCHECKMACROS - #ifdef _MSC_VER #include #endif @@ -26,5 +23,3 @@ #else #define FF_C_SCANF(formatStrIndex, argsStartIndex) #endif - -#endif diff --git a/src/util/FFstrbuf.h b/src/util/FFstrbuf.h index a79ba2cc1..fa4a9da87 100644 --- a/src/util/FFstrbuf.h +++ b/src/util/FFstrbuf.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_FFSTRBUF -#define FASTFETCH_INCLUDED_FFSTRBUF - #include "FFcheckmacros.h" #include @@ -491,5 +488,3 @@ static inline void ffStrbufTrim(FFstrbuf* strbuf, char c) } #define FF_STRBUF_AUTO_DESTROY FFstrbuf __attribute__((__cleanup__(ffStrbufDestroy))) - -#endif diff --git a/src/util/apple/cf_helpers.h b/src/util/apple/cf_helpers.h index fbfa47383..c509bd574 100644 --- a/src/util/apple/cf_helpers.h +++ b/src/util/apple/cf_helpers.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_cf_helpers -#define FASTFETCH_INCLUDED_cf_helpers - #include "fastfetch.h" #include #include @@ -38,5 +35,3 @@ static inline void wrapIoObjectRelease(io_service_t* service) IOObjectRelease(*service); } #define FF_IOOBJECT_AUTO_RELEASE __attribute__((__cleanup__(wrapIoObjectRelease))) - -#endif diff --git a/src/util/apple/osascript.h b/src/util/apple/osascript.h index 2c9fe8306..164d8d708 100644 --- a/src/util/apple/osascript.h +++ b/src/util/apple/osascript.h @@ -1,10 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_osascript -#define FASTFETCH_INCLUDED_osascript - #include "fastfetch.h" bool ffOsascript(const char* input, FFstrbuf* result); - -#endif diff --git a/src/util/mallocHelper.h b/src/util/mallocHelper.h index cacba8ecd..8e314841e 100644 --- a/src/util/mallocHelper.h +++ b/src/util/mallocHelper.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_UTIL_MALLOC_HELPER -#define FASTFETCH_INCLUDED_UTIL_MALLOC_HELPER - #include #include @@ -14,5 +11,3 @@ static inline void ffWrapFree(const void* pPtr) } #define FF_AUTO_FREE __attribute__((__cleanup__(ffWrapFree))) - -#endif diff --git a/src/util/smbiosHelper.h b/src/util/smbiosHelper.h index 7d7a4b18d..1bce70b48 100644 --- a/src/util/smbiosHelper.h +++ b/src/util/smbiosHelper.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_SMBIOSVALUEHELPER -#define FASTFETCH_INCLUDED_SMBIOSVALUEHELPER - #include "util/FFstrbuf.h" bool ffIsSmbiosValueSet(FFstrbuf* value); @@ -95,5 +92,3 @@ const FFSmbiosHeaderTable* ffGetSmbiosHeaderTable(); #ifdef __linux__ bool ffGetSmbiosValue(const char* devicesPath, const char* classPath, FFstrbuf* buffer); #endif - -#endif diff --git a/src/util/textModifier.h b/src/util/textModifier.h index 3ff9db082..dbc4338cd 100644 --- a/src/util/textModifier.h +++ b/src/util/textModifier.h @@ -1,10 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_TEXT_MODIFIER -#define FASTFETCH_INCLUDED_TEXT_MODIFIER - #define FASTFETCH_TEXT_MODIFIER_BOLT "\033[1m" #define FASTFETCH_TEXT_MODIFIER_ERROR "\033[1;31m" #define FASTFETCH_TEXT_MODIFIER_RESET "\033[m" - -#endif diff --git a/src/util/unused.h b/src/util/unused.h index faef70d09..937ac9bf9 100644 --- a/src/util/unused.h +++ b/src/util/unused.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_UNUSED -#define FASTFETCH_INCLUDED_UNUSED - static inline void ffUnused(int dummy, ...) { (void) dummy; } #define FF_UNUSED(...) ffUnused(0, __VA_ARGS__); #if defined(__GNUC__) || defined(__clang__) @@ -10,5 +7,3 @@ static inline void ffUnused(int dummy, ...) { (void) dummy; } #else #define FF_MAYBE_UNUSED #endif - -#endif diff --git a/src/util/windows/getline.h b/src/util/windows/getline.h index e4f48a4cf..0c0e9ec70 100644 --- a/src/util/windows/getline.h +++ b/src/util/windows/getline.h @@ -1,11 +1,6 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_UTIL_GETLINE -#define FASTFETCH_INCLUDED_UTIL_GETLINE - #include #include ssize_t getline(char **lineptr, size_t *n, FILE *stream); - -#endif diff --git a/src/util/windows/registry.h b/src/util/windows/registry.h index 959fea5e3..1c3f7f46f 100644 --- a/src/util/windows/registry.h +++ b/src/util/windows/registry.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_REGISTER_H -#define FASTFETCH_INCLUDED_REGISTER_H - #include "fastfetch.h" #include @@ -22,5 +19,3 @@ bool ffRegReadUint(HKEY hKey, const wchar_t* valueNameW, uint32_t* result, FFstr bool ffRegReadUint64(HKEY hKey, const wchar_t* valueNameW, uint64_t* result, FFstrbuf* error); bool ffRegGetSubKey(HKEY hKey, uint32_t index, FFstrbuf* result, FFstrbuf* error); bool ffRegGetNSubKeys(HKEY hKey, uint32_t* result, FFstrbuf* error); - -#endif diff --git a/src/util/windows/unicode.h b/src/util/windows/unicode.h index a25d4a7b4..783cf6787 100644 --- a/src/util/windows/unicode.h +++ b/src/util/windows/unicode.h @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_UNICODE_H -#define FASTFETCH_INCLUDED_UNICODE_H - #include "util/FFstrbuf.h" #include @@ -34,5 +31,3 @@ static inline FFstrbuf ffStrbufCreateWS(const wchar_t* source) if (!source) return ffStrbufCreate(); return ffStrbufCreateNWS((uint32_t)wcslen(source), source); } - -#endif diff --git a/src/util/windows/unicode.hpp b/src/util/windows/unicode.hpp index b6745572b..f3bca6f48 100644 --- a/src/util/windows/unicode.hpp +++ b/src/util/windows/unicode.hpp @@ -1,8 +1,5 @@ #pragma once -#ifndef FASTFETCH_INCLUDED_UNICODE_HPP -#define FASTFETCH_INCLUDED_UNICODE_HPP - #ifdef __cplusplus extern "C" { @@ -26,5 +23,3 @@ static inline void ffStrbufSetWSV(FFstrbuf* result, const std::wstring_view sour #error Must be included in C++ source file #endif - -#endif