#ifdef - Can It Be Used With Logic Such as OR / AND?
As is often the case when using #ifdef, I'm using #ifdef to distiguish compiler directives for the various platforms that I'm using or the various compilers of which I'm using to compile.
In my case, the 3 platforms are as follows:
In some cases in the code, I would like to precede the code with a statement such as the following:
#ifdef GCC || ALPHA
However, the GCC compiler doesn't seem to like this:
" warning: extra tokens at end of #ifdef directive"
Therefore, does anyone know how to create a #ifdef statement that allows such conditions like this?
Otherwise, I would have to do the following:
#else if ALPHA
same code as GCC
Thanks in advance,