mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-02-19 23:46:02 +01:00
extra catch for buggy compiler/preprocessor
This commit is contained in:
parent
172dbfd444
commit
fad504bc7f
@ -18,6 +18,9 @@
|
|||||||
|
|
||||||
#if __has_include ( "config.h")
|
#if __has_include ( "config.h")
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#ifndef MOTOR_SHIELD_TYPE
|
||||||
|
#error Your config.h must include a MOTOR_SHIELD_TYPE definition. If you see this warning in spite not having a config.h, you have a buggy preprocessor and must copy config.example.h to config.h
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#warning config.h not found. Using defaults from config.example.h
|
#warning config.h not found. Using defaults from config.example.h
|
||||||
#include "config.example.h"
|
#include "config.example.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user