Say I have for unix I have a header file that does some function that is implemented differently in windows( e.g. sleep), how can I make it such that my code can be compiled on both windows and linux?
I know in the past for windows it is done this way
#ifdef WIN32
#include "header.h"
#endif
Does it still work today?
What is the linux/unix equivalent it?