source:
code/branches/tutorial/src/util/Sleep.h
@
2079
| Last change on this file since 2079 was 859, checked in by landauf, 18 years ago | |
|---|---|
| File size: 192 bytes | |
| Rev | Line | |
|---|---|---|
| [859] | 1 | // hack for the usleep/Sleep problem |
| 2 | #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) | |
| 3 | # include <windows.h> | |
| 4 | # define usleep(x) Sleep((x)/1000) | |
| 5 | #else | |
| 6 | # include <unistd.h> | |
| 7 | #endif |
Note: See TracBrowser
for help on using the repository browser.










