From d8e6025b458262b7bc876995987bbe51a9f47a36 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Thu, 9 Feb 2023 23:44:10 +0100 Subject: [PATCH] Use define in header rather than Makefile --- host/led_strip/Makefile | 2 +- host/led_strip/dtplug_protocol_host.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/host/led_strip/Makefile b/host/led_strip/Makefile index fdafb8f..e67cea7 100644 --- a/host/led_strip/Makefile +++ b/host/led_strip/Makefile @@ -1,7 +1,7 @@ #CROSS_COMPILE ?= arm-linux-gnueabihf- CC = $(CROSS_COMPILE)gcc -CFLAGS = -Wall -O2 -Wextra -DHOST_HAS_STDINT +CFLAGS = -Wall -O2 -Wextra EXEC = protocol_bridge diff --git a/host/led_strip/dtplug_protocol_host.h b/host/led_strip/dtplug_protocol_host.h index 23cd3f4..9b24460 100644 --- a/host/led_strip/dtplug_protocol_host.h +++ b/host/led_strip/dtplug_protocol_host.h @@ -28,6 +28,7 @@ #include +#define HOST_HAS_STDINT 1 #include "dtplug_protocol_defs.h" -- 2.43.0