I just recently had need of adding a sleep to a program I was working on. Since the program compiles under both Linux and Pelles C I try and avoid using any windows specific features.
Under Linux gcc there is a header unistd.h that contains the sleep() command.
Under Windows/Pelles C/MSVC there is a header windows.h that contains Sleep().
I looked at he unistd.h file that Pelles C includes during install and there appears to be a commented out sleep().
Questions:
1. Why is it commented out.
2. Any chance of getting it added "back" in.
I just really hate using #if/#endif
Peace,
Liquiz