- name = removeExtension (name, ".h");
-
- libname = strrchr (name, CONNECTCHAR);
+ xname = fileLib_withoutExtension (sname, cstring_makeLiteralTemp (".h"));
+
+ DPRINTF (("Include? %s", sname));
+
+ /*@access cstring@*/
+ llassert (cstring_isDefined (xname));
+# if defined (OS2)
+ {
+ /* Posixlibs use forward slashes, so we use them here, too */
+ cstring_replaceAll (xname, '\\', '/');
+ libname = strrchr (xname, '/');
+ DPRINTF (("libname: %s", libname));
+ }
+# else
+ libname = strrchr (xname, CONNECTCHAR);
+# endif