aboutsummaryrefslogtreecommitdiff
path: root/libfdt/fdt.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2025-03-13 20:27:18 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2025-03-14 13:51:31 +1100
commitf4c53f4ebf7809a07666bf728c823005e1f1a612 (patch)
tree2c092a574523d338f21162f67a040aed71b2d4a0 /libfdt/fdt.h
parent205fbef17b7b2f410e34ac79aa1559a8d492b66c (diff)
downloaddtc-master.zip
dtc-master.tar.gz
dtc-master.tar.bz2
Use __ASSEMBLER__ instead of __ASSEMBLY__HEADmastermain
Both, Clang and GCC define __ASSEMBLER__ automatically when compiling .S files, so this macro is a much better fit for fdt.h - programs that want to use it from .S files don't have to manually #define __ASSEMBLY__ that way. While we're at it, also change it in testdata.h, then we don't have to define __ASSEMBLY__ in the Makefile / meson.build file anymore. Signed-off-by: Thomas Huth <thuth@redhat.com> Message-ID: <20250313192718.1561683-1-thuth@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/fdt.h')
-rw-r--r--libfdt/fdt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libfdt/fdt.h b/libfdt/fdt.h
index 0c91aa7..a07abfc 100644
--- a/libfdt/fdt.h
+++ b/libfdt/fdt.h
@@ -7,7 +7,7 @@
* Copyright 2012 Kim Phillips, Freescale Semiconductor.
*/
-#ifndef __ASSEMBLY__
+#ifndef __ASSEMBLER__
struct fdt_header {
fdt32_t magic; /* magic word FDT_MAGIC */
@@ -45,7 +45,7 @@ struct fdt_property {
char data[];
};
-#endif /* !__ASSEMBLY */
+#endif /* !__ASSEMBLER__ */
#define FDT_MAGIC 0xd00dfeed /* 4: version, 4: total size */
#define FDT_TAGSIZE sizeof(fdt32_t)