Fix the sanity-check for config versions
This commit is contained in:
parent
1f11b0f612
commit
8c5bc77fb9
@ -42,11 +42,12 @@
|
|||||||
* the bleeding-edge source code, but sometimes this is not enough. This check
|
* the bleeding-edge source code, but sometimes this is not enough. This check
|
||||||
* forces a minimum config file revision. Otherwise Marlin will not build.
|
* forces a minimum config file revision. Otherwise Marlin will not build.
|
||||||
*/
|
*/
|
||||||
#if !defined(CONFIGURATION_H_VERSION) || CONFIGURATION_H_VERSION < REQUIRED_CONFIGURATION_H_VERSION
|
#define HEXIFY(H) _CAT(0x,H)
|
||||||
|
#if !defined(CONFIGURATION_H_VERSION) || HEXIFY(CONFIGURATION_H_VERSION) < HEXIFY(REQUIRED_CONFIGURATION_H_VERSION)
|
||||||
#error "You are using an old Configuration.h file, update it before building Marlin."
|
#error "You are using an old Configuration.h file, update it before building Marlin."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIGURATION_ADV_H_VERSION) || CONFIGURATION_ADV_H_VERSION < REQUIRED_CONFIGURATION_ADV_H_VERSION
|
#if !defined(CONFIGURATION_ADV_H_VERSION) || HEXIFY(CONFIGURATION_ADV_H_VERSION) < HEXIFY(REQUIRED_CONFIGURATION_ADV_H_VERSION)
|
||||||
#error "You are using an old Configuration_adv.h file, update it before building Marlin."
|
#error "You are using an old Configuration_adv.h file, update it before building Marlin."
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user