compat.h 487 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __COMPAT_H__
  2. #define __COMPAT_H__
  3. #ifdef WIN32
  4. #include <windows.h>
  5. static inline void sleep(int secs)
  6. {
  7. Sleep(secs * 1000);
  8. }
  9. enum {
  10. PRIO_PROCESS = 0,
  11. };
  12. static inline int setpriority(int which, int who, int prio)
  13. {
  14. /* FIXME - actually do something */
  15. return 0;
  16. }
  17. typedef unsigned long int ulong;
  18. typedef unsigned short int ushort;
  19. typedef unsigned int uint;
  20. #ifndef __SUSECONDS_T_TYPE
  21. typedef long suseconds_t;
  22. #endif
  23. #endif /* WIN32 */
  24. #endif /* __COMPAT_H__ */