Skip to content

Commit

Permalink
not on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
liz3 committed Nov 3, 2024
1 parent de799f5 commit 7e125f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/optionals/path.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static Value isdirNative(DictuVM *vm, int argCount, Value *args) {
return FALSE_VAL;

}

#ifndef _WIN32
static Value isSymlinkNative(DictuVM *vm, int argCount, Value *args) {
if (argCount != 1) {
runtimeError(vm, "isSymbolicLink() takes 1 argument (%d given)", argCount);
Expand All @@ -182,6 +182,7 @@ static Value isSymlinkNative(DictuVM *vm, int argCount, Value *args) {
return FALSE_VAL;

}
#endif

static Value listDirNative(DictuVM *vm, int argCount, Value *args) {
if (argCount > 1) {
Expand Down Expand Up @@ -358,7 +359,9 @@ Value createPathModule(DictuVM *vm) {
defineNative(vm, &module->values, "dirname", dirnameNative);
defineNative(vm, &module->values, "exists", existsNative);
defineNative(vm, &module->values, "isDir", isdirNative);
#ifndef _WIN32
defineNative(vm, &module->values, "isSymbolicLink", isSymlinkNative);
#endif
defineNative(vm, &module->values, "listDir", listDirNative);
defineNative(vm, &module->values, "join", joinNative);

Expand Down

0 comments on commit 7e125f0

Please sign in to comment.