Added more makefiles; fixed some samples for Cygwin

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-02-09 16:00:23 +00:00
parent fed485e094
commit dbda9e86f0
84 changed files with 1997 additions and 1578 deletions

View File

@@ -402,11 +402,11 @@ void WriteTexReferences(char *filename)
void ReadTexReferences(char *filename)
{
#if !wxUSE_IOSTREAMH && __WXMSW__
if (!wxFileExists(filename))
return;
ifstream istr(filename, ios::in);
#else
ifstream istr(filename, ios::nocreate | ios::in);
#endif
if (istr.bad()) return;
char label[100];
@@ -569,12 +569,11 @@ void BibReadValue(istream& istr, char *buffer, bool ignoreBraces = TRUE,
bool ReadBib(char *filename)
{
if (!wxFileExists(filename))
return FALSE;
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;
@@ -1291,11 +1290,11 @@ char *RegisterSetting(char *settingName, char *settingValue, bool interactive)
bool ReadCustomMacros(char *filename)
{
#if !wxUSE_IOSTREAMH && __WXMSW__
if (!wxFileExists(filename))
return FALSE;
ifstream istr(filename, ios::in);
#else
ifstream istr(filename, ios::nocreate | ios::in);
#endif
if (istr.bad()) return FALSE;
CustomMacroList.Clear();