Skip to content

Commit 188dbde

Browse files
committed
Chore: remove all #ifndef guards
1 parent 48bb5b8 commit 188dbde

File tree

18 files changed

+0
-90
lines changed

18 files changed

+0
-90
lines changed

src/detection/displayserver/linux/displayserver_linux.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#pragma once
22

3-
#ifndef FASTFETCH_INCLUDED_DISPLAYSERVER
4-
#define FASTFETCH_INCLUDED_DISPLAYSERVER
5-
63
#include "detection/displayserver/displayserver.h"
74

85
const char* ffdsConnectWayland(FFDisplayServerResult* result);
@@ -18,5 +15,3 @@ const char* ffdsConnectDrm(FFDisplayServerResult* result);
1815
void ffdsDetectWMDE(FFDisplayServerResult* result);
1916

2017
FFDisplayType ffdsGetDisplayType(const char* drmConnectorName);
21-
22-
#endif

src/detection/wmtheme/wmtheme.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
#pragma once
22

3-
#ifndef FASTFETCH_INCLUDED_detection_wmtheme
4-
#define FASTFETCH_INCLUDED_detection_wmtheme
5-
63
#include "fastfetch.h"
74

85
bool ffDetectWmTheme(FFstrbuf* themeOrError);
9-
10-
#endif

src/fastfetch.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#pragma once
22

3-
#ifndef FASTFETCH_INCLUDED
4-
#define FASTFETCH_INCLUDED
5-
63
#include "fastfetch_config.h"
74

85
#include <stdint.h>
@@ -80,5 +77,3 @@ void ffLogoPrintLine();
8077
void ffLogoBuiltinPrint();
8178
void ffLogoBuiltinList();
8279
void ffLogoBuiltinListAutocompletion();
83-
84-
#endif

src/fastfetch_config.h.in

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#pragma once
22

3-
#ifndef FASTFETCH_INDLUDED_fastfetch_config_h_in
4-
#define FASTFETCH_INDLUDED_fastfetch_config_h_in
5-
63
#define FASTFETCH_PROJECT_NAME "@PROJECT_NAME@"
74
#define FASTFETCH_PROJECT_VERSION "@PROJECT_VERSION@"
85
#define FASTFETCH_PROJECT_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
@@ -22,5 +19,3 @@
2219
#define FASTFETCH_TARGET_DIR_ETC "@TARGET_DIR_ETC@"
2320

2421
#define FASTFETCH_TARGET_DIR_INSTALL_SYSCONF "@CMAKE_INSTALL_SYSCONFDIR@"
25-
26-
#endif // FASTFETCH_INDLUDED_fastfetch_config_h_in

src/fastfetch_datatext.h.in

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
#pragma once
22

3-
#ifndef FASTFETCH_INDLUDED_fastfetch_datatext_h_in
4-
#define FASTFETCH_INDLUDED_fastfetch_datatext_h_in
5-
63
#define FASTFETCH_DATATEXT_JSON_HELP @DATATEXT_JSON_HELP@
74
#define FASTFETCH_DATATEXT_STRUCTURE @DATATEXT_STRUCTURE@
85
#define FASTFETCH_DATATEXT_HELP_FOOTER @DATATEXT_HELP_FOOTER@
96
#define FASTFETCH_DATATEXT_HELP_COLOR @DATATEXT_HELP_COLOR@
107
#define FASTFETCH_DATATEXT_HELP_FORMAT @DATATEXT_HELP_FORMAT@
118
#define FASTFETCH_DATATEXT_HELP_CONFIG @DATATEXT_HELP_CONFIG@
12-
13-
#endif

src/logo/logo.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#pragma once
22

3-
#ifndef FASTFETCH_INCLUDED_LOGO_logo
4-
#define FASTFETCH_INCLUDED_LOGO_logo
5-
63
#include "fastfetch.h"
74

85
typedef enum FFLogoLineType
@@ -31,5 +28,3 @@ extern const FFlogo ffLogoUnknown;
3128

3229
//image/image.c
3330
bool ffLogoPrintImageIfExists(FFLogoType type, bool printError);
34-
35-
#endif

src/util/FFcheckmacros.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#pragma once
22

3-
#ifndef FASTFETCH_INCLUDED_FFCHECKMACROS
4-
#define FASTFETCH_INCLUDED_FFCHECKMACROS
5-
63
#ifdef _MSC_VER
74
#include <sal.h>
85
#endif
@@ -26,5 +23,3 @@
2623
#else
2724
#define FF_C_SCANF(formatStrIndex, argsStartIndex)
2825
#endif
29-
30-
#endif

src/util/FFstrbuf.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#pragma once
22

3-
#ifndef FASTFETCH_INCLUDED_FFSTRBUF
4-
#define FASTFETCH_INCLUDED_FFSTRBUF
5-
63
#include "FFcheckmacros.h"
74

85
#include <stdint.h>
@@ -491,5 +488,3 @@ static inline void ffStrbufTrim(FFstrbuf* strbuf, char c)
491488
}
492489

493490
#define FF_STRBUF_AUTO_DESTROY FFstrbuf __attribute__((__cleanup__(ffStrbufDestroy)))
494-
495-
#endif

src/util/apple/cf_helpers.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#pragma once
22

3-
#ifndef FASTFETCH_INCLUDED_cf_helpers
4-
#define FASTFETCH_INCLUDED_cf_helpers
5-
63
#include "fastfetch.h"
74
#include <CoreFoundation/CoreFoundation.h>
85
#include <IOKit/IOKitLib.h>
@@ -38,5 +35,3 @@ static inline void wrapIoObjectRelease(io_service_t* service)
3835
IOObjectRelease(*service);
3936
}
4037
#define FF_IOOBJECT_AUTO_RELEASE __attribute__((__cleanup__(wrapIoObjectRelease)))
41-
42-
#endif

src/util/apple/osascript.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
#pragma once
22

3-
#ifndef FASTFETCH_INCLUDED_osascript
4-
#define FASTFETCH_INCLUDED_osascript
5-
63
#include "fastfetch.h"
74

85
bool ffOsascript(const char* input, FFstrbuf* result);
9-
10-
#endif

0 commit comments

Comments
 (0)