Use define in header rather than Makefile master
authorNathael Pajani <nathael.pajani@ed3l.fr>
Thu, 9 Feb 2023 22:44:10 +0000 (23:44 +0100)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Thu, 9 Feb 2023 22:44:10 +0000 (23:44 +0100)
host/led_strip/Makefile
host/led_strip/dtplug_protocol_host.h

index fdafb8f..e67cea7 100644 (file)
@@ -1,7 +1,7 @@
 #CROSS_COMPILE ?= arm-linux-gnueabihf-
 CC = $(CROSS_COMPILE)gcc
 
 #CROSS_COMPILE ?= arm-linux-gnueabihf-
 CC = $(CROSS_COMPILE)gcc
 
-CFLAGS = -Wall -O2 -Wextra -DHOST_HAS_STDINT
+CFLAGS = -Wall -O2 -Wextra
 
 EXEC = protocol_bridge
 
 
 EXEC = protocol_bridge
 
index 23cd3f4..9b24460 100644 (file)
@@ -28,6 +28,7 @@
 
 
 #include <stdint.h>
 
 
 #include <stdint.h>
+#define HOST_HAS_STDINT 1
 #include "dtplug_protocol_defs.h"
 
 
 #include "dtplug_protocol_defs.h"