From: Nathael Pajani Date: Thu, 9 Feb 2023 22:44:10 +0000 (+0100) Subject: Use define in header rather than Makefile X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=HEAD;p=soft%2Flpc122x%2Frfsub1GHz Use define in header rather than Makefile --- 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"