You have to look for the same function in linux. than we have to think about what would be the best to deal with it: just compiler if's?! Creating an extra class to handle such stuff?!