Edit

thodg/cgminer/compat.h

Branch :

  • Show log

    Commit

  • Author : Jeff Garzik
    Date : 2010-11-26 16:28:12
    Hash : 0a333110
    Message : Build on Windows using mingw32.

  • compat.h
  • #ifndef __COMPAT_H__
    #define __COMPAT_H__
    
    #ifdef WIN32
    
    #include <windows.h>
    
    static inline void sleep(int secs)
    {
    	Sleep(secs * 1000);
    }
    
    enum {
    	PRIO_PROCESS		= 0,
    };
    
    static inline int setpriority(int which, int who, int prio)
    {
    	/* FIXME - actually do something */
    	return 0;
    }
    
    #endif /* WIN32 */
    
    #endif /* __COMPAT_H__ */