src/Pure/Thy/thy_info.ML
changeset 60975 5f3d6e16ea78
parent 60937 51425cbe8ce9
child 61381 ddca85598c65
--- a/src/Pure/Thy/thy_info.ML	Wed Aug 19 15:40:59 2015 +0200
+++ b/src/Pure/Thy/thy_info.ML	Wed Aug 19 16:21:10 2015 +0200
@@ -291,7 +291,8 @@
     val name = Path.implode (Path.base path);
     val node_name = File.full_path dir (Resources.thy_path path);
     fun check_entry (Task (node_name', _, _)) =
-          if node_name = node_name' then ()
+          if op = (apply2 File.platform_path (node_name, node_name'))
+          then ()
           else
             error ("Incoherent imports for theory " ^ quote name ^
               Position.here require_pos ^ ":\n" ^