Automatic date update in version.in
[deliverable/binutils-gdb.git] / binutils / strings.c
index 3ecdb929953d6c6a3f999b17f62a9e76d6958e64..44a8e1da644d1ac2e4d5c7606b084d7c8b3e600a 100644 (file)
@@ -149,9 +149,7 @@ main (int argc, char **argv)
   char *s;
   int numeric_opt = 0;
 
-#if defined (HAVE_SETLOCALE)
   setlocale (LC_ALL, "");
-#endif
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
@@ -610,61 +608,42 @@ print_strings (const char *filename, FILE *stream, file_ptr address,
        switch (address_radix)
          {
          case 8:
-#ifdef HAVE_LONG_LONG
            if (sizeof (start) > sizeof (long))
              {
-# ifndef __MSVCRT__
+#ifndef __MSVCRT__
                printf ("%7llo ", (unsigned long long) start);
-# else
+#else
                printf ("%7I64o ", (unsigned long long) start);
-# endif
+#endif
              }
            else
-#elif !BFD_HOST_64BIT_LONG
-             if (start != (unsigned long) start)
-               printf ("++%7lo ", (unsigned long) start);
-             else
-#endif
-               printf ("%7lo ", (unsigned long) start);
+             printf ("%7lo ", (unsigned long) start);
            break;
 
          case 10:
-#ifdef HAVE_LONG_LONG
            if (sizeof (start) > sizeof (long))
              {
-# ifndef __MSVCRT__
+#ifndef __MSVCRT__
                printf ("%7llu ", (unsigned long long) start);
-# else
+#else
                printf ("%7I64d ", (unsigned long long) start);
-# endif
+#endif
              }
            else
-#elif !BFD_HOST_64BIT_LONG
-             if (start != (unsigned long) start)
-               printf ("++%7lu ", (unsigned long) start);
-             else
-#endif
-               printf ("%7ld ", (long) start);
+             printf ("%7ld ", (long) start);
            break;
 
          case 16:
-#ifdef HAVE_LONG_LONG
            if (sizeof (start) > sizeof (long))
              {
-# ifndef __MSVCRT__
+#ifndef __MSVCRT__
                printf ("%7llx ", (unsigned long long) start);
-# else
+#else
                printf ("%7I64x ", (unsigned long long) start);
-# endif
+#endif
              }
            else
-#elif !BFD_HOST_64BIT_LONG
-             if (start != (unsigned long) start)
-               printf ("%lx%8.8lx ", (unsigned long) (start >> 32),
-                       (unsigned long) (start & 0xffffffff));
-             else
-#endif
-               printf ("%7lx ", (unsigned long) start);
+             printf ("%7lx ", (unsigned long) start);
            break;
          }
 
This page took 0.024362 seconds and 4 git commands to generate.