I want to define a macro which includes another header file like so:
#define MY_MACRO (text) #include \"__FILE__##_inline.inl\"
So that whe
#if 0 /*Windows*/
#define MKDIR_ENABLER
#define MY_MKDIR(x,y) _mkdir((x))
#else /*Linux*/
#define MKDIR_ENABLER
#define MY_MKDIR(x,y) mkdir((x),(y))
#endif
#include MKDIR_ENABLER
int main(void)
{
MY_MKDIR("more_bla",0644);
return 0;
}
This code includes the appropriate header file for mkdir (because it's different on UNIX and Windows) and introduces a nice wrapper for it.