From: Unknown (UG) <nobody@localhost>
Date: Thu, 7 Jan 1999 16:50:58 +0000 (+0000)
Subject: fix for wxuse_iostreamh
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/eb7aa89b04707bc5334f78f5ab357fe96866e476

fix for wxuse_iostreamh


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/utils/tex2rtf/src/texutils.cpp b/utils/tex2rtf/src/texutils.cpp
index 5de8abcae7..ea888383fe 100644
--- a/utils/tex2rtf/src/texutils.cpp
+++ b/utils/tex2rtf/src/texutils.cpp
@@ -402,7 +402,11 @@ void WriteTexReferences(char *filename)
 
 void ReadTexReferences(char *filename)
 {
+#if !wxUSE_IOSTREAMH && __WXMSW__
+  ifstream istr(filename, ios::in);
+#else
   ifstream istr(filename, ios::nocreate | ios::in);
+#endif  
   if (istr.bad()) return;
 
   char label[100];
@@ -566,7 +570,11 @@ void BibReadValue(istream& istr, char *buffer, bool ignoreBraces = TRUE,
 bool ReadBib(char *filename)
 {
   char buf[300];
+#if !wxUSE_IOSTREAMH && __WXMSW__
+  ifstream istr(filename, ios::in);
+#else  
   ifstream istr(filename, ios::nocreate | ios::in);
+#endif  
   if (istr.bad()) return FALSE;
 
   BibLine = 1;
@@ -1283,7 +1291,11 @@ char *RegisterSetting(char *settingName, char *settingValue, bool interactive)
 
 bool ReadCustomMacros(char *filename)
 {
+#if !wxUSE_IOSTREAMH && __WXMSW__
+  ifstream istr(filename, ios::in);
+#else  
   ifstream istr(filename, ios::nocreate | ios::in);
+#endif  
   if (istr.bad()) return FALSE;
 
   CustomMacroList.Clear();