aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-15 19:00:22 +0200
committerlemon <lsof@mailbox.org>2025-10-15 19:01:31 +0200
commit74145741f194f914ea479801a19d83708c8b72fd (patch)
tree44a36087f577728ff4694ec86b4bee8b4c7b18cf
parent8d6407d9f316a950bce2c08df9ed2c99eed6c5c3 (diff)
fix offsetof definition
-rw-r--r--embedfilesdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/embedfilesdir.c b/embedfilesdir.c
index 9d64740..5d58c60 100644
--- a/embedfilesdir.c
+++ b/embedfilesdir.c
@@ -15,7 +15,7 @@ typedef __typeof__(sizeof 0) size_t;\n\
/*typedef __typeof__(L'a') wchar_t;*/\n\
typedef int wchar_t;\n\
#define NULL ((void *)0)\n\
-#define offsetof(_Type, _Memb) ((size_t)(&((_Type *)0)->_Memb - (_Type *)0))\n\
+#define offsetof(type, memb) ((size_t)((char *)&((type *)0)->memb - (char *)0))\n\
")},
{"stdarg.h", S("\