|
From: Mike C. <da...@ix...> - 2003-03-14 00:41:34
|
On Fri, Mar 14, 2003 at 01:00:21AM +0900, Leif Mortenson wrote:
> This is all checked into CVS and lightly tested on both Linux and
> Windows. So
> feel free to check it out and give it a try.
Cool. Works well. Least, the simple tests I did under NT.
Hmmm... I don't have MS compilers laying around, so.... I ported this stuff
to MinGW. Now, since your code uses the MS extentions __try/__catch, and
gcc doesn't support that (instead, a couple of hack defines to allow it
build only), I wouldn't recommend this process for production stuff (unless
you change the code :-). But, it works well for kicking the tires.
Anyway, I'll attach the patch and the Makefile.mingw I created. If nothing
else, it's entertaining. Though, it did point out a few unused variables
and some mis-casts (most likely the API changed out from under you). So
building against MinGW occasionally isn't necessarily a bad idea.
This should only require MinGW installed, not MSYS.
Do you think you'll be able to release an official version any time soon?
I'd like to switch our product over to it, and would like to use an
official build, if possible.
Some comments on the patch. no __min/__max in MinGW, and it's not listed
on MSDN, so I moved those around a bit. It doesn't look like _CRTAPI1 is
needed anymore for services. At least the current examples on MSDN doesn't
use them, and again, not in MinGW. I don't think it's necessary. MSDN
references _flushall(), but not flushall(), so that should be an acceptable
change as well.
Cheers!
mrc [gone till Wednesday]
--
Mike Castle da...@ix... www.netcom.com/~dalgoda/
We are all of us living in the shadow of Manhattan. -- Watchmen
fatal ("You are in a maze of twisty compiler features, all different"); -- gcc
|