You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
446B

  1. #ifndef _OS_SUPPORT_H
  2. #define _OS_SUPPORT_H
  3. /*
  4. * miscellaneous OS support macros
  5. *
  6. * For now:
  7. * usleep()
  8. */
  9. #ifdef __MINGW32__
  10. # include <windows.h>
  11. # define usleep(t) Sleep((t) / 1000)
  12. #endif
  13. #ifdef __BEOS__
  14. # ifndef usleep
  15. # include <OS.h>
  16. # define usleep(t) snooze((bigtime_t)(t))
  17. # endif
  18. #endif
  19. #if defined(CONFIG_OS2)
  20. # include <stdlib.h>
  21. # define usleep(t) _sleep2((t) / 1000)
  22. #endif
  23. #endif /* _OS_SUPPORT_H */