summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2021-04-01 20:33:07 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2021-04-01 20:33:36 +0200
commitf907a4e71e430da0293e9057f617917686c4d40c (patch)
treeb54d59927fcb1095731df7665645c24e97669a72
parentfd2b8350accbe056b051b88847e38dcb468ed1bb (diff)
downloadperl_checker-f907a4e71e430da0293e9057f617917686c4d40c.tar
perl_checker-f907a4e71e430da0293e9057f617917686c4d40c.tar.gz
perl_checker-f907a4e71e430da0293e9057f617917686c4d40c.tar.bz2
perl_checker-f907a4e71e430da0293e9057f617917686c4d40c.tar.xz
perl_checker-f907a4e71e430da0293e9057f617917686c4d40c.zip
Fix compiling with ocaml-4.12
"compare" becames "List.compare" due to https://github.com/ocaml/ocaml/pull/9668 Thus we need to use Stdlib.compare Thx Pascal Rigaux
-rw-r--r--NEWS1
-rw-r--r--src/common.ml2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d7273fb..fe3d453 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@
o sync Gtk3::WebKit2 with webkit-2.32.0
o sync Gtk4 fake package with gtk4-4.2.0
o sync with glib-2.68.0 & gtk+-3.24.28
+- fix compiling with ocaml-4.12
Version 1.2.41 - 8 December 2020, by Thierry Vignaud
diff --git a/src/common.ml b/src/common.ml
index 04225f9..ce57937 100644
--- a/src/common.ml
+++ b/src/common.ml
@@ -976,7 +976,7 @@ let is_greater2compare is_greater a b =
module OrderedString =
struct
type t = string
- let compare = compare
+ let compare = Stdlib.compare
end;;
module StringSet = Set.Make(OrderedString);;