This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

yet another problem with cygwin



Hi,
This patch fixes one of the library build problems under Cygwin where O_BINARY
happend to be defined.

1999-10-15  Vadim Egorov  <egorovv@HotPOP.com>

	* src/basic_file.cc: ifdef instead of comment for binary mode

Index: basic_file.cc
===================================================================
RCS file: /cvs/libstdc++/libstdc++/src/basic_file.cc,v
retrieving revision 1.19
diff -c -r1.19 basic_file.cc
*** basic_file.cc	1999/10/04 22:56:13	1.19
--- basic_file.cc	1999/10/15 08:56:23
***************
*** 98,104 ****
  		     int __prot = 0664)
    {
      __basic_file* __retval = NULL;
!     //bool __testb = __mode & ios_base::binary;
      bool __testi = __mode & ios_base::in;
      bool __testo = __mode & ios_base::out;
      bool __testt = __mode & ios_base::trunc;
--- 98,106 ----
  		     int __prot = 0664)
    {
      __basic_file* __retval = NULL;
! #ifdef O_BINARY
!     bool __testb = __mode & ios_base::binary;
! #endif	   
      bool __testi = __mode & ios_base::in;
      bool __testo = __mode & ios_base::out;
      bool __testt = __mode & ios_base::trunc;

-- 
Regards,
Vadim Egorov 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]