2007-09-20 18:09:08 -04:00
|
|
|
#include "master.h"
|
|
|
|
|
|
|
|
s64 current_millis(void)
|
|
|
|
{
|
|
|
|
SYSTEMTIME st;
|
|
|
|
FILETIME ft;
|
|
|
|
GetSystemTime(&st);
|
|
|
|
SystemTimeToFileTime(&st, &ft);
|
|
|
|
return (((s64)ft.dwLowDateTime
|
|
|
|
| (s64)ft.dwHighDateTime<<32) - EPOCH_OFFSET) / 10000;
|
|
|
|
}
|
|
|
|
|
|
|
|
char *strerror(int err)
|
|
|
|
{
|
|
|
|
/* strerror() is not defined on WinCE */
|
2007-10-13 00:57:24 -04:00
|
|
|
return "strerror() is not defined on WinCE. Use native I/O.";
|
2007-09-20 18:09:08 -04:00
|
|
|
}
|
|
|
|
|
2007-10-13 00:57:24 -04:00
|
|
|
void flush_icache(CELL start, CELL end)
|
2007-09-20 18:09:08 -04:00
|
|
|
{
|
|
|
|
FlushInstructionCache(GetCurrentProcess(), 0, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
char *getenv(char *name)
|
|
|
|
{
|
|
|
|
not_implemented_error();
|
|
|
|
return 0; /* unreachable */
|
|
|
|
}
|
|
|
|
|
2007-11-13 01:09:38 -05:00
|
|
|
DEFINE_PRIMITIVE(os_envs)
|
|
|
|
{
|
|
|
|
not_implemented_error();
|
|
|
|
}
|
|
|
|
|
2007-10-28 01:21:37 -04:00
|
|
|
void c_to_factor_toplevel(CELL quot)
|
2007-09-20 18:09:08 -04:00
|
|
|
{
|
2007-10-28 01:21:37 -04:00
|
|
|
c_to_factor(quot);
|
2007-10-13 00:57:24 -04:00
|
|
|
}
|
2007-11-21 15:27:25 -05:00
|
|
|
|
|
|
|
void open_console(void) { }
|