The code below compiles on Borland C++ (if I #include <stdio.h>), but Pelles C gives the following errors:
expected ')' but found 'string constant'
expected ';' but found 'string constant'
expected ';' but found ')'
invallid statement termination
If I remove the #ifdef #else and #endif lines, Pelles C does compile it without error. What gives?
#include <wchar.h>
int wmain(void)
{
wprintf(L"This compiler is "
#ifdef __POCC__
L"Pelles C.\n"
#else
L"not Pelles C.\n"
#endif
);
return 0;
}