File gcc-3.4.6-libjava-isspace.patch of Package gcc3

diff -Ndurp gcc-3.4.6/libjava/prims.cc gcc-3.4.6-libjava-isspace/libjava/prims.cc
--- gcc-3.4.6/libjava/prims.cc	2011-05-11 19:54:58.000000000 +0300
+++ gcc-3.4.6-libjava-isspace/libjava/prims.cc	2014-09-28 01:52:37.535307303 +0300
@@ -33,7 +33,6 @@ details.  */
 #endif
 
 #ifndef DISABLE_GETENV_PROPERTIES
-#include <ctype.h>
 #include <java-props.h>
 #define PROCESS_GCJ_PROPERTIES process_gcj_properties()
 #else
@@ -740,6 +739,8 @@ static java::lang::Thread *main_thread;
 
 #ifndef DISABLE_GETENV_PROPERTIES
 
+#define c_isspace(c) (memchr (" \t\n\r\v\f", c, 6) != NULL)
+
 static char *
 next_property_key (char *s, size_t *length)
 {
@@ -748,7 +749,7 @@ next_property_key (char *s, size_t *leng
   JvAssert (s);
 
   // Skip over whitespace
-  while (isspace (*s))
+  while (c_isspace (*s))
     s++;
 
   // If we've reached the end, return NULL.  Also return NULL if for
@@ -760,7 +761,7 @@ next_property_key (char *s, size_t *leng
 
   // Determine the length of the property key.
   while (s[l] != 0
-	 && ! isspace (s[l])
+	 && ! c_isspace (s[l])
 	 && s[l] != ':'
 	 && s[l] != '=')
     {
@@ -782,14 +783,14 @@ next_property_value (char *s, size_t *le
 
   JvAssert (s);
 
-  while (isspace (*s))
+  while (c_isspace (*s))
     s++;
 
   if (*s == ':'
       || *s == '=')
     s++;
 
-  while (isspace (*s))
+  while (c_isspace (*s))
     s++;
 
   // If we've reached the end, return NULL.
@@ -798,7 +799,7 @@ next_property_value (char *s, size_t *le
 
   // Determine the length of the property value.
   while (s[l] != 0
-	 && ! isspace (s[l])
+	 && ! c_isspace (s[l])
 	 && s[l] != ':'
 	 && s[l] != '=')
     {
openSUSE Build Service is sponsored by