From 9510d1d52b0bdf3ba8665571eedc42202dc546c7 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 1 Feb 2011 01:06:27 +0000 Subject: Fixes to help build on SGI. Mainly: problem with C++ style comments that were in C code and headers. SGI C compiler / pre processor no grok C++ comments. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8347 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_utf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fl_utf.c') diff --git a/src/fl_utf.c b/src/fl_utf.c index fbfc779f9..d18a6a38d 100644 --- a/src/fl_utf.c +++ b/src/fl_utf.c @@ -124,10 +124,10 @@ static unsigned short cp1252[32] = { unexpectedly 1 will work: \code - if (*p & 0x80) { // what should be a multibyte encoding + if (*p & 0x80) { // what should be a multibyte encoding code = fl_utf8decode(p,end,&len); - if (len<2) code = 0xFFFD; // Turn errors into REPLACEMENT CHARACTER - } else { // handle the 1-byte utf8 encoding: + if (len<2) code = 0xFFFD; // Turn errors into REPLACEMENT CHARACTER + } else { // handle the 1-byte utf8 encoding: code = *p; len = 1; } -- cgit v1.2.3