compat.h 426 B

1234567891011121314151617181920212223242526272829
  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. #endif /* WIN32 */
  21. #endif /* __COMPAT_H__ */