Commit c5ac5edb by Loren J. Rittle Committed by Loren J. Rittle

* docs/html/17_intro/porting.texi (_GLIBCPP_AVOID_FSEEK): Remove.

From-SVN: r52642
parent 9340544b
2002-04-22 Loren J. Rittle <ljrittle@acm.org>
* docs/html/17_intro/porting.texi (_GLIBCPP_AVOID_FSEEK): Remove.
2002-04-20 Jason Merrill <jason@redhat.com> 2002-04-20 Jason Merrill <jason@redhat.com>
PR libstdc++/4150 PR libstdc++/4150
......
...@@ -142,18 +142,11 @@ need to define. You will need to add them to the ...@@ -142,18 +142,11 @@ need to define. You will need to add them to the
target. It will not work to simply define these macros in target. It will not work to simply define these macros in
@file{os_defines.h}. @file{os_defines.h}.
At this time, there are two libstdc++-v3-specific macros which may be At this time, there is one libstdc++-v3-specific macro which may be
defined. @code{_G_USING_THUNKS} may be defined to 0 to express that the defined. @code{_G_USING_THUNKS} may be defined to 0 to express that the
port doesn't use thunks (although it is unclear that this is still port doesn't use thunks (although it is unclear that this is still
useful since libio support isn't currently working and the g++ v3 ABI useful since libio support isn't currently working and the g++ v3 ABI
invalidates the assumption that some ports don't use thunks). invalidates the assumption that some ports don't use thunks).
@code{_GLIBCPP_AVOID_FSEEK} may be defined if seeking on an interactive
stream (or one hooked to a pipe) is not allowed by the OS. In this
case, getc()/ungetc() will be used at some key locations in the library
implementation instead of fseek(). Currently, the code path to avoid
fseek() is only enabled when the seek size is 1 character away from the
current stream position. This is known to improve *-unknown-freebsd*,
sparc-sun-solaris2.* and *-*-mingw32*.
Finally, you should bracket the entire file in an include-guard, like Finally, you should bracket the entire file in an include-guard, like
this: this:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment