diff options
author | David P Hilton <[email protected]> | 2018-10-28 10:34:39 -0600 |
---|---|---|
committer | David P Hilton <[email protected]> | 2018-10-28 10:35:19 -0600 |
commit | 3c94324811d66722489c216c4ffc89fcca7fdba5 (patch) | |
tree | 9b49116beeb43fbc1d772edb9230069cb94b9a97 | |
parent | ce671282a6b3854b1329d495017e39df33844d8e (diff) | |
download | IronOS-3c94324811d66722489c216c4ffc89fcca7fdba5.tar.gz IronOS-3c94324811d66722489c216c4ffc89fcca7fdba5.zip |
use sum of 'defined' instead of logic
-rw-r--r-- | workspace/TS100/inc/hardware.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/workspace/TS100/inc/hardware.h b/workspace/TS100/inc/hardware.h index dc215769..0b70f227 100644 --- a/workspace/TS100/inc/hardware.h +++ b/workspace/TS100/inc/hardware.h @@ -19,9 +19,9 @@ enum Orientation { ORIENTATION_FLAT = 3 }; -#if defined(MODEL_TS100) && defined(MODEL_TS80) +#if defined(MODEL_TS100) + defined(MODEL_TS80) > 1 #error "Multiple models defined!" -#elif !defined(MODEL_TS100) && !defined(MODEL_TS80) +#elif defined(MODEL_TS100) + defined(MODEL_TS80) == 0 #error "No model defined!" #endif |