Another HAVE_DOS_BASED_FILE_SYSTEM check.
authorAlan Modra <amodra@gmail.com>
Wed, 31 Jan 2001 06:02:18 +0000 (06:02 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 31 Jan 2001 06:02:18 +0000 (06:02 +0000)
binutils/ChangeLog
binutils/ieee.c

index 8430d4ef5a58edbb8c4d4f2c7d734ca6c08fa4cb..dddbb35e87b68b1fcef65f03148955c4b3bfad45 100644 (file)
@@ -1,3 +1,8 @@
+2001-01-31  Steve deRosier  <sderosier@vari-lite.com>
+
+       * ieee.c (ieee_add_bb11): Don't check for backslashes
+       unless HAVE_DOS_BASED_FILE_SYSTEM is defined.
+
 2001-01-24  Mark Elbrecht  <snowball3@bigfoot.com>
 
        * ieee.c: Update copyright.
index efd3ba3a9399f2b890bd1419c1a608994db17113..52149b2261b579c82ef33bee7815e55f81b218d0 100644 (file)
@@ -5204,15 +5204,20 @@ ieee_add_bb11 (info, sec, low, high)
     }
   else
     {
-      const char *filename, *modname, *backslash;
+      const char *filename, *modname;
+#ifdef HAVE_DOS_BASED_FILE_SYSTEM
+      const char *backslash;
+#endif
       char *c, *s;
 
       /* Start the enclosing BB10 block.  */
       filename = bfd_get_filename (info->abfd);
       modname = strrchr (filename, '/');
+#ifdef HAVE_DOS_BASED_FILE_SYSTEM
       backslash = strrchr (filename, '\\');
       if (modname == NULL || (backslash != NULL && backslash > modname))
        modname = backslash;
+#endif
 
       if (modname != NULL)
        ++modname;