You must first decide how to use conditional compilation macros. There are usually two popular approaches. It either
#define A #define B #ifdef A ... #endif #if defined(A) && defined(B) ... #endif
or
#define A 1 #define B 0 #if A ... #endif #if A && B ... #endif
those. either simply define a macro and #ifdef it with #ifdef and / or #if defined() or define a macro for a numerical value and parse if with #if .
You mix these two approaches in your code example, which usually doesn't make sense. Decide which approach you want to use and follow.
source share