Is unistd.h available with Linux compilers only, or is it available on Windows compilers too?
Printable View
Is unistd.h available with Linux compilers only, or is it available on Windows compilers too?
>Is unistd.h available with Linux compilers only
Yes or no, depending on how broad your definition of Linux is.
>or is it available on Windows compilers too?
That would be nice...
>Yes or no, depending on how broad your definition of Linux is.
I meant GCC, but I guess I wasn't clear enough (at all).
>That would be nice...
Dang. I guess I'll take that as a no.
In that case, does anyone know of anything like the usleep function in unistd.h for Windows? (For those who don't know, usleep gives you microsecond-level control over sleep time).
>does anyone know of anything like the usleep function in unistd.h for Windows?
I believe that DJGPP supports usleep. For other compilers you'll probably have to write your own by calling something like QueryPerformanceCounter.
Ahh screw it. I'll just stick with what time.h offers me.
>I'll just stick with what time.h offers me.
Wuss. ;)