diff src/c/urweb.c @ 1147:92f37d58828b

Trying to get urweb.c working for someone in NetBSD
author Adam Chlipala <adamc@hcoop.net>
date Sat, 06 Feb 2010 13:09:51 -0500
parents bafb6a5a52a9
children 15767031950c
line wrap: on
line diff
--- a/src/c/urweb.c	Thu Feb 04 16:29:09 2010 -0500
+++ b/src/c/urweb.c	Sat Feb 06 13:09:51 2010 -0500
@@ -1,4 +1,4 @@
-#define _XOPEN_SOURCE 600
+#define _XOPEN_SOURCE 1000
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -1350,7 +1350,7 @@
       s2 += 2;
       break;
     default:
-      if (isprint(c))
+      if (isprint((int)c))
         *s2++ = c;
       else {
         sprintf(s2, "\\%3o", c);
@@ -1386,7 +1386,7 @@
     s2 += 2;
     break;
   default:
-    if (isprint(c))
+    if (isprint((int)c))
       *s2++ = c;
     else {
       sprintf(s2, "\\%3o", c);
@@ -1420,7 +1420,7 @@
       s2 += 2;
       break;
     default:
-      if (isprint(c))
+      if (isprint((int)c))
         *s2++ = c;
       else {
         sprintf(s2, "\\%3o", c);