소스 검색

Throw an error for gcc before 4.7

Scott Lahteine 7 년 전
부모
커밋
dcfbe2bd3c
1개의 변경된 파일3개의 추가작업 그리고 4개의 파일을 삭제
  1. 3
    4
      Marlin/SanityCheck.h

+ 3
- 4
Marlin/SanityCheck.h 파일 보기

@@ -27,11 +27,10 @@
27 27
  */
28 28
 
29 29
 /**
30
- * Due to the high number of issues related with old versions of Arduino IDE
31
- * we now prevent Marlin from compiling with older toolkits.
30
+ * Require gcc 4.7 or newer (first included with Arduino 1.6.8) for C++11 features.
32 31
  */
33
-#if !defined(ARDUINO) || ARDUINO < 10608
34
-  #error "Versions of Arduino IDE prior to 1.6.8 are no longer supported, please update your toolkit."
32
+#if __cplusplus < 201103L
33
+  #error "Marlin requires C++11 support (gcc >= 4.7, Arduino IDE >= 1.6.8). Please upgrade your toolchain."
35 34
 #endif
36 35
 
37 36
 /**

Loading…
취소
저장