From dcfbe2bd3c06aeeac6896e9732cfbbd367e76e08 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 19 Dec 2016 17:12:58 -0800 Subject: [PATCH] Throw an error for gcc before 4.7 --- Marlin/SanityCheck.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Marlin/SanityCheck.h b/Marlin/SanityCheck.h index 0890f581bb..b1f4e12f9e 100644 --- a/Marlin/SanityCheck.h +++ b/Marlin/SanityCheck.h @@ -27,11 +27,10 @@ */ /** - * Due to the high number of issues related with old versions of Arduino IDE - * we now prevent Marlin from compiling with older toolkits. + * Require gcc 4.7 or newer (first included with Arduino 1.6.8) for C++11 features. */ -#if !defined(ARDUINO) || ARDUINO < 10608 - #error "Versions of Arduino IDE prior to 1.6.8 are no longer supported, please update your toolkit." +#if __cplusplus < 201103L + #error "Marlin requires C++11 support (gcc >= 4.7, Arduino IDE >= 1.6.8). Please upgrade your toolchain." #endif /**