* libio/libio.h: Add test for glibc 2.0.
authorAndreas Jaeger <aj@gcc.gnu.org>
Sun, 14 Jan 2001 19:12:23 +0000 (20:12 +0100)
committerAndreas Jaeger <aj@gcc.gnu.org>
Sun, 14 Jan 2001 19:12:23 +0000 (20:12 +0100)
From-SVN: r39014

libstdc++-v3/ChangeLog
libstdc++-v3/libio/libio.h

index 6bfbfb2866ec0f378b401ea7a4ab73173bb80478..1f7822bd526901ba2e5f2ba76129726e993e17ae 100644 (file)
@@ -1,7 +1,11 @@
+2001-01-14  Andreas Jaeger  <aj@suse.de>
+
+       * libio/libio.h: Add test for glibc 2.0.
+
 2001-01-12  Benjamin Kosnik  <bkoz@redhat.com>
 
        * config/os/djgpp/bits/*: Fix dates.
-       
+
        * include/bits/basic_string.h (_S_find(const _CharT* __beg, const
        _CharT* __end, _CharT __c): Remove.
        * include/bits/basic_string.tcc: Substitute traits::find for _S_find.
@@ -16,8 +20,8 @@
        * configure.target: set os_include_dir to config/os/djgpp under DJGPP.
        * configure: regenerated.
        * config/os/djgpp, config/os/djgpp/bits: new directories.
-       * config/os/djgpp/bits/ctype_base.h, 
-       config/os/djgpp/bits/ctype_inline.h, 
+       * config/os/djgpp/bits/ctype_base.h,
+       config/os/djgpp/bits/ctype_inline.h,
        config/os/djgpp/bits/ctype_noninline.h,
        config/os/djgpp/bits/os_defines.h: new files.
 
        * include/bits/fpos.h (fpos:::fpos(streamoff __pos)): Explicitly
        initialize mbstate_t member, name offset data members *off, not pos.
        * include/bits/fstream.tcc (filebuf::filebuf): Same.
-       
+
 2001-01-08  Benjamin Kosnik  <bkoz@redhat.com>
 
        reported by Chris G. Demetriou <cgd@sibyte.com>
        * configure.in: Change -linux-* to -linux*.
        * configure: Regenerate.
-       
+
 2001-01-05  Benjamin Kosnik  <bkoz@redhat.com>
 
        Fix 27_io/filebuf_members.cc
        to ios_base::Init.
        * src/ios.cc (ios_base::Init::Init): Initialize here.
        (ios_base::sync_with_stdio): Set here.
-       
+
 2001-01-04  Loren J. Rittle  <ljrittle@acm.org>
 
         * config/c_io_stdio.cc (__basic_file<_CharT>::sys_open()): On
        * acinclude.m4 (GLIBCPP_ENABLD_CSTDIO): Add in default value.
        * aclocal.m4: Regenerate.
        * configure: Regenerate.
-       
+
        * include/bits/c++config (__GLIBCPP__): Bump version number.
 
        * ChangeLog: Start new log for year 2001
        add commentary.
 
 2001-01-01  Benjamin Kosnik  <bkoz@fillmore.redhat.com>
-       
+
        * include/c_std/bits/std_cwchar.h: Same.
        * testsuite/17_intro/header_cwchar.cc: Same.
        * include/c_std/bits/std_ctime.h: Same.
index 68525a7de6b1c1a1cf0e9061c54808fa3eb40dc0..e2a2a15bcb0d9d541d6324707950c91355ce1349 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,94,95,97,98,99,2000 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,93,94,95,97,98,99,2000,2001 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
    Written by Per Bothner <bothner@cygnus.com>.
 
@@ -162,7 +162,11 @@ struct _IO_jump_t;  struct _IO_FILE;
 /* Handle lock.  */
 #ifdef _IO_MTSAFE_IO
 # if defined __GLIBC__ && __GLIBC__ >= 2
-#  include <bits/stdio-lock.h>
+#  if __GLIBC_MINOR__ == 0
+#   include <stdio-lock.h>
+#  else
+#   include <bits/stdio-lock.h>
+#  endif
 # else
 /*# include <comthread.h>*/
 # endif