Skip to content

Commit

Permalink
Merge pull request #759 from tleedjarv/old-compat
Browse files Browse the repository at this point in the history
Remove more of old compiler compatibility code
  • Loading branch information
gdt authored Jun 26, 2022
2 parents af8669b + 15450b0 commit 2a73c1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/fsmonitor/windows/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ FSMOCAMLOBJS = \
FSMCOBJS = \
bytearray_stubs$(OBJ_EXT) \
system/system_win_stubs$(OBJ_EXT) lwt/lwt_unix_stubs$(OBJ_EXT)
FSMOCAMLLIBS=bigarray.cma unix.cma
FSMOCAMLLIBS=unix.cma

ifeq ($(NATIVE), true)
FSMCAMLOBJS=$(subst .cmo,.cmx, $(FSMOCAMLOBJS))
Expand Down
6 changes: 1 addition & 5 deletions src/path.ml
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,8 @@ let followPred = Pred.create "follow"
The syntax of \\ARG{pathspec} is \
described in \\sectionref{pathspec}{Path Specification}.")

let winHasReadlink =
Scanf.sscanf Sys.ocaml_version "%d.%d.%d" (fun x y z -> x > 4 || x = 4 && y >= 3)

let followLink path =
(Util.osType = `Unix || Util.isCygwin || winHasReadlink)
&& Pred.test followPred (toString path)
Pred.test followPred (toString path)

let forceLocal p = p
let makeGlobal p = p

0 comments on commit 2a73c1f

Please sign in to comment.