Files
RedBear-OS/local/patches/relibc/P3-stddef-reorder.patch
T
2026-05-07 04:35:57 +01:00

21 lines
472 B
Diff

diff --git a/include/stddef.h b/include/stddef.h
index 334267f4..beefde5e 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -1,6 +1,5 @@
#ifndef _STDDEF_H
#define _STDDEF_H
-#include <stdint.h>
#define NULL 0
@@ -11,6 +10,8 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
typedef long unsigned int size_t;
+#include <stdint.h>
+
typedef struct { long long __ll; long double __ld; } max_align_t;
#define offsetof(type, member) __builtin_offsetof(type, member)