This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SXP on Cygwin


Lapo Luchini wrote:

Hi all!
I'd like to use SXP (http://sxp.sourceforge.net/) on a project, but it gives a couple of header errors.
I can solve them myself I bet but, as I'm lazy and I'm in a hurry... just a quick message here to ask if someone already did it ^_^
OK.. did it, wasn't dififcult at all, once "mentally erased" the lines and lines of STL errors...

--- sxp.cpp.orig 2001-12-09 11:24:18.000000000 +0100
+++ sxp.cpp 2002-11-09 00:12:48.000000000 +0100
@@ -88,12 +88,12 @@
}
} else {
if( *p < 0x800 ) {
- ret.append(1, (0xC0 | ((*p) >> 6) ));
- ret.append(1, (0x80 | ((*p) & 0x3F )));
+ ret.append(1, (char)(0xC0 | ((*p) >> 6) ));
+ ret.append(1, (char)(0x80 | ((*p) & 0x3F )));
} else {
- ret.append(1, (0xE0 | ( (*p) >> 12) ));
- ret.append(1, (0x80 | (((*p) >> 6) & 0x3F )));
- ret.append(1, (0x80 | ( (*p) & 0x3F )));
+ ret.append(1, (char)(0xE0 | ( (*p) >> 12) ));
+ ret.append(1, (char)(0x80 | (((*p) >> 6) & 0x3F )));
+ ret.append(1, (char)(0x80 | ( (*p) & 0x3F )));
}
}
}

--
Lapo 'Raist' Luchini
lapo@lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]