I'm trying to obtain something like:
#if (!defined(SVN_REV) || (SVN_REV==""))
char svnrev[10]="not found";
#else
char svnrev[16]=SVN_REV;
#endif
to handle the case that the compiler, not finding a particular environment variable, sets:
define SVN_REV ""
which for me should be treated same as the define is missing.
But it seems that this is not possible, did anybody found a way to achieve the result?