mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
issues with gettime on mach kernel.
This commit is contained in:
parent
2b36ed967c
commit
4721337c7c
@ -596,6 +596,11 @@ JanetTable *janet_get_core_table(const char *name) {
|
|||||||
|
|
||||||
/* Clock shims for various platforms */
|
/* Clock shims for various platforms */
|
||||||
#ifdef JANET_GETTIME
|
#ifdef JANET_GETTIME
|
||||||
|
/* For macos */
|
||||||
|
#ifdef __MACH__
|
||||||
|
#include <mach/clock.h>
|
||||||
|
#include <mach/mach.h>
|
||||||
|
#endif
|
||||||
#ifdef JANET_WINDOWS
|
#ifdef JANET_WINDOWS
|
||||||
int janet_gettime(struct timespec *spec) {
|
int janet_gettime(struct timespec *spec) {
|
||||||
FILETIME ftime;
|
FILETIME ftime;
|
||||||
|
@ -1006,8 +1006,10 @@ int main(int argc, char **argv) {
|
|||||||
SetConsoleOutputCP(65001);
|
SetConsoleOutputCP(65001);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(JANET_WINDOWS) && !defined(JANET_SIMPLE_GETLINE)
|
||||||
/* Try and not leave the terminal in a bad state */
|
/* Try and not leave the terminal in a bad state */
|
||||||
atexit(norawmode);
|
atexit(norawmode);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Set up VM */
|
/* Set up VM */
|
||||||
janet_init();
|
janet_init();
|
||||||
|
Loading…
Reference in New Issue
Block a user