From f62b5838df23c73fb12f8b39e276de18c57e1d38 Mon Sep 17 00:00:00 2001 From: Simon John Date: Fri, 14 Feb 2014 15:25:29 +0000 Subject: Add -D__PROG_TYPES_COMPAT__ to the avr-g++ compiler flags This results in just a deprecated warning rather than an error when using libraries (e.g. jeelib) that still use prog_XXX types This is how the IDE does it, and means that libraries don't have to add the #define __PROG_TYPES_COMPAT__ line Reference: http://www.nongnu.org/avr-libc/user-manual/group__avr__pgmspace.html Fix #169 --- Arduino.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Arduino.mk') diff --git a/Arduino.mk b/Arduino.mk index 02efc4b..767f493 100644 --- a/Arduino.mk +++ b/Arduino.mk @@ -785,7 +785,7 @@ else endif # Using += instead of =, so that CPPFLAGS can be set per sketch level -CPPFLAGS += -$(MCU_FLAG_NAME)=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) \ +CPPFLAGS += -$(MCU_FLAG_NAME)=$(MCU) -DF_CPU=$(F_CPU) -DARDUINO=$(ARDUINO_VERSION) -D__PROG_TYPES_COMPAT__ \ -I. -I$(ARDUINO_CORE_PATH) -I$(ARDUINO_VAR_PATH)/$(VARIANT) \ $(SYS_INCLUDES) $(USER_INCLUDES) -Wall -ffunction-sections \ -fdata-sections -- cgit v1.2.3