Meson: Advertise HAVE_OUTB
Rename __FLASHPROG_HAVE_OUTB__ to the more canonical HAVE_OUTB
and make sure Meson sets it on x86.
Change-Id: I67106292ea19ff49d9afe7d23b29e75c8e1ae0fc
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.sourcearcade.org/c/flashprog/+/495
diff --git a/meson.build b/meson.build
index 50412a9..f9f860c 100644
--- a/meson.build
+++ b/meson.build
@@ -134,6 +134,7 @@
if systems_hwaccess.contains(host_machine.system())
srcs += files('hwaccess_physmap.c')
if ['x86', 'x86_64'].contains(host_machine.cpu_family())
+ add_project_arguments('-DHAVE_OUTB=1', language : 'c')
srcs += files('hwaccess_x86_msr.c', 'hwaccess_x86_io.c')
endif
endif