I have a file called config.h with the following...
#define GL_DOOM
Then I have the following in another file m_misc.c...
#include "config.h"
...
#if ((defined GL_DOOM) && (defined _MSC_VER))
LOGD("Using glboom-plus.cfg");
#define BOOM_CFG "glboom-plus.cfg"
#else
LOGD("Using prboom-plus.cfg");
#define BOOM_CFG "prboom-plus.cfg"
#endif
But it says...
05-02 14:40:24.789: D/Doom(2966): Using prboom-plus.cfg
What is the deal here? I am new to C so what am I missing?
&& (defined _MSC_VER)<-_MSC_VERseems to not be defined.#define GL_DOOMin config.h getting parsed? For example, are there#if's or#ifdef's around it?