Mail Archives: djgpp/2011/07/06/18:45:05
Hi,
On Jul 6, 12:54 am, Ozkan Sezer <seze DOT DOT DOT AT gmail DOT com> wrote:
> On Wed, Jul 6, 2011 at 1:36 AM, Rugxulo <rugx DOT DOT DOT AT gmail DOT com> wrote:
>
> > On Jul 5, 12:46 pm, Ozkan Sezer <seze DOT DOT DOT AT gmail DOT com> wrote:
>
> >> For vsnprintf() with djgpp<=2.03, I use src/libc/ansi/stdio/vsnprntf.c
> >> from djgpp 2.04 directly included in my sources with __stropenw() and
> >> __strclosew() helpers pasted from include/libc/file.h into it.
>
> >> This seems successful fo me, so far. Are there any problems with this
> >> that I am not aware of?
>
> > Don't know offhand, you'll just have to try it and see. :-))
>
> I did, and it seems to work fine, even with djgpp as old as 2.0.0 :)
> I just wanted to know whether there are any requirements that I
> don't know.
>
> > P.S. I think libsupp supports those, which might be a cleaner way of
> > getting it.
>
> Well cleaner is arguable, there are lots of stuff in libsupp that I don't
> care about one bit, so this was the easiest and most straightforward
> for me.
Here's something I remember reading a while back. Maybe it'll work for
you? :-)
http://www.mesa3d.org/README.DJ (by Daniel Borca)
Q) Libraries built OK, but linker complains about `vsnprintf' every
time I
compile some demo.
A) Upgrade to DJGPP 2.04.
A) Add `vsnprintf.c' to the CORE_SOURCES in `src/
Makefile.DJ' (untested!).
A) Patch `src/mesa/main/imports.c' with the following line:
#define vsnprintf(buf, max, fmt, arg) vsprintf(buf, fmt, arg)
This hack should be safe in 90% of the cases, but if anything
goes wrong,
don't come back to me crying.
- Raw text -