1
1
This commit was SVN r11440.
Этот коммит содержится в:
George Bosilca 2006-08-27 04:53:52 +00:00
родитель c697a25040
Коммит 0e317286f3

Просмотреть файл

@ -24,6 +24,7 @@
#define _SC_PAGESIZE 0
#define _SC_OPEN_MAX 1
#if 0
/* currently, this is a memory leak */
static __inline char* getenv (const char *name)
{
@ -53,11 +54,12 @@ static __inline int setenv (const char *name, const char *value, int rewrite)
ret = SetEnvironmentVariable ((LPCSTR)name, (LPCSTR)value);
return (0 != ret)? 1: 0;
}
#endif
static __inline unsigned int sleep(unsigned int seconds) {
/* Allow interruptions */
SleepEx(seconds * 100, TRUE);
SleepEx(seconds * 1000, TRUE);
return 0;
}