Code:
void Wsk::makeDir(string name)
{
#ifdef LINUX
mkdir(name.c_str() , S_IRWXU | S_IRWXG | S_IRWXO);
#endif
#ifdef WINDOWS
mkdir(name.c_str());
#endif
}
isnt this suppose to work both in linux and windows ? if i use ifdef linux,it doesnt work,but if i comment it,its working,why is that ?