You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/fastfetch.h
+1-11Lines changed: 1 addition & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
#define__attribute__(x)
16
16
#endif
17
17
18
+
#include"util/arrayUtils.h"
18
19
#include"util/FFstrbuf.h"
19
20
#include"util/FFlist.h"
20
21
#include"util/platform/FFPlatform.h"
@@ -24,17 +25,6 @@
24
25
#include"options/display.h"
25
26
#include"options/general.h"
26
27
27
-
#ifdef__has_builtin
28
-
#if__has_builtin(__is_array)
29
-
#defineARRAY_SIZE(x) ({ static_assert(__is_array(__typeof__(x)), "Must be an array"); (uint32_t) (sizeof(x) / sizeof(*(x))); })
30
-
#elif__has_builtin(__builtin_types_compatible_p)
31
-
#defineARRAY_SIZE(x) ({ static_assert(!__builtin_types_compatible_p(__typeof__(x), __typeof__(&*(x))), "Must not be a pointer"); (uint32_t) (sizeof(x) / sizeof(*(x))); })
#defineARRAY_SIZE(x) ({ static_assert(__is_array(__typeof__(x)), "Must be an array"); (uint32_t) (sizeof(x) / sizeof(*(x))); })
8
+
#elif__has_builtin(__builtin_types_compatible_p)
9
+
#defineARRAY_SIZE(x) ({ static_assert(!__builtin_types_compatible_p(__typeof__(x), __typeof__(&*(x))), "Must not be a pointer"); (uint32_t) (sizeof(x) / sizeof(*(x))); })
0 commit comments