Mail Archives: djgpp/1999/01/17/12:50:51
On Sun, 17 Jan 1999, Eli Zaretskii wrote:
> > Just take a look at stl_config.h file and you'll see the trivial
> > definition needed for systems without lrand48. Look for the
> > __STL_NO_DRAND48 and simply define that for djgpp.
>
> Thanks for the pointer.
>
> Shouldn't this be determined automatically at configure time?
STL is not configured in the usual sense when you build EGCS (I don't
remember what FSF gcc does anymore, but it's moot since the C++ front
end FSF gcc is too buggy to be usable in any case), but simply added
on as 3rd party code without any changes.
A simple patch like the following to STL folks stl AT sgi DOT com should fix
this. SGI STL team is very responsive. This is completely untested
of course, so usual caveats apply.
Sun Jan 17 11:35:34 1999 Mumit Khan <khan AT xraylith DOT wisc DOT edu>
* stl_config.h (__STL_NO_DRAND48): Define for djgpp.
--- stl_config.h.~1 Sun Jan 17 11:33:22 1999
+++ stl_config.h Sun Jan 17 11:35:15 1999
@@ -173,6 +173,9 @@
# endif
# endif
+# if defined(__DJGPP__)
+# define __STL_NO_DRAND48
+# endif
# if defined(__STL_NEED_BOOL)
typedef int bool;
Regards,
Mumit
- Raw text -