Add compiler __has_include macro check

This commit is contained in:
Bodmer 2022-09-10 15:35:46 +01:00
parent 5592f603dd
commit e446f65ff9
1 changed files with 7 additions and 1 deletions

View File

@ -15,7 +15,13 @@
// Customised User_Setup files are stored in the "User_Setups" folder.
// The following lines allow the user setup to be included in the sketch, see
// "Sketch_with_tft_setup" generic example. Do not edit lines 19 to 26!
// "Sketch_with_tft_setup" generic example. Do not edit lines 19 to 32!
#if !defined __has_include
#if !defined(DISABLE_ALL_LIBRARY_WARNINGS)
#warning Compiler does not support __has_include, so sketches cannot define the setup
#endif
#endif
#if __has_include(<tft_setup.h>)
#include <tft_setup.h>
#ifndef USER_SETUP_LOADED