Skip to content

Commit 2488030

Browse files
committed
MSVC compatibility / x64
1 parent 25f545f commit 2488030

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libbf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <stddef.h>
2828
#include <stdint.h>
2929

30-
#if INTPTR_MAX >= INT64_MAX
30+
#if defined(__x86_64__)
3131
#define LIMB_LOG2_BITS 6
3232
#else
3333
#define LIMB_LOG2_BITS 5

quickjs-libc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3113,7 +3113,7 @@ static JSValue js_os_kill(JSContext *ctx, JSValueConst this_val,
31133113
}
31143114

31153115
/* sleep(delay_ms) */
3116-
static JSValue js_os_sleep(JSContext *ctx, JSValueConst this_val,
3116+
/*static JSValue js_os_sleep(JSContext *ctx, JSValueConst this_val,
31173117
int argc, JSValueConst *argv)
31183118
{
31193119
int64_t delay;
@@ -3126,7 +3126,7 @@ static JSValue js_os_sleep(JSContext *ctx, JSValueConst this_val,
31263126
ts.tv_nsec = (delay % 1000) * 1000000;
31273127
ret = js_get_errno(nanosleep(&ts, NULL));
31283128
return JS_NewInt32(ctx, ret);
3129-
}
3129+
}*/
31303130

31313131
/* dup(fd) */
31323132
static JSValue js_os_dup(JSContext *ctx, JSValueConst this_val,

0 commit comments

Comments
 (0)