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/xutf8/utf8Input.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/xutf8/utf8Input.c') diff --git a/src/xutf8/utf8Input.c b/src/xutf8/utf8Input.c index 400b7b1de..2fb415b51 100644 --- a/src/xutf8/utf8Input.c +++ b/src/xutf8/utf8Input.c @@ -52,7 +52,7 @@ typedef struct { unsigned short used; } Summary16; -#define NEED_TOWC // indicates what part of these include files is needed here (avoid compilation warnings) +#define NEED_TOWC /* indicates what part of these include files is needed here (avoid compilation warnings) */ #include "lcUniConv/big5.h" #include "lcUniConv/gb2312.h" #include "lcUniConv/cp936ext.h" @@ -382,7 +382,8 @@ XConvertEucToUtf8(const char* locale, int len, int bytes_buffer) { - //if (!locale/* || strstr(locale, "UTF") || strstr(locale, "utf")*/) { + /* if (!locale) { */ + /* if (!locale || strstr(locale, "UTF") || strstr(locale, "utf")) { */ if (!locale || strstr(locale, "UTF") || strstr(locale, "utf")) { return len; } -- cgit v1.2.3