#define and enum compiler error

Need to see Your code. What did you write versus what comes from libraries ?