Use __ASSEMBLER__ instead of __ASSEMBLY__

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>
This commit is contained in:
Thomas Huth 2025-03-13 20:27:18 +01:00 committed by David Gibson
parent 205fbef17b
commit f4c53f4ebf
4 changed files with 7 additions and 7 deletions

View file

@ -1,4 +1,4 @@
trees = static_library('trees', files('trees.S'), c_args: '-D__ASSEMBLY__',
trees = static_library('trees', files('trees.S'),
build_by_default: false,
include_directories: libfdt_inc)