RISC-V: Add PT_RISCV_ATTRIBUTES and add it to PHDR.
[binutils-gdb.git] / binutils / windres.c
index a897a328a9d0eaae3164a6d2b82c9d69960c1778..2b626a29fb68ada1cc012a267a60d72c1335bea9 100644 (file)
@@ -48,7 +48,7 @@
 
 int verbose = 0;
 
-bfd_boolean target_is_bigendian = 0;
+bool target_is_bigendian = 0;
 const char *def_target_arch;
 
 static void set_endianness (bfd *, const char *);
@@ -710,37 +710,13 @@ quot (const char *string)
       buf = (char *) xmalloc (buflen);
     }
 
-#if defined (_WIN32) && !defined (__CYGWIN__)
-  /* For Windows shells, quote "like this".   */
-  {
-    bfd_boolean quoted = FALSE;
-
-    dest = buf;
-    if (strchr (string, ' '))
-      {
-       quoted = TRUE;
-       *dest++ = '"';
-      }
-
-    for (src = string; *src; src++, dest++)
-      {
-       /* Escape-protect embedded double quotes.  */
-       if (quoted && *src == '"')
-         *dest++ = '\\';
-       *dest = *src;
-      }
-
-    if (quoted)
-      *dest++ = '"';
-  }
-#else
   for (src = string, dest = buf; *src; src++, dest++)
     {
       if (*src == '(' || *src == ')' || *src == ' ')
        *dest++ = '\\';
       *dest = *src;
     }
-#endif
+
   *dest = 0;
   return buf;
 }
@@ -823,12 +799,10 @@ main (int argc, char **argv)
   rc_res_directory *resources;
   int use_temp_file;
 
-#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
+#ifdef HAVE_LC_MESSAGES
   setlocale (LC_MESSAGES, "");
 #endif
-#if defined (HAVE_SETLOCALE)
   setlocale (LC_CTYPE, "");
-#endif
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);