From ad2e154a5d05daccc6f93e93cb3007b7c185a7e3 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 11 Nov 2002 18:49:30 +0000 Subject: [PATCH] not just a windows thing --- dtool/src/dtoolutil/filename.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dtool/src/dtoolutil/filename.cxx b/dtool/src/dtoolutil/filename.cxx index 2baa5f1b39..6f9f60bbc0 100644 --- a/dtool/src/dtoolutil/filename.cxx +++ b/dtool/src/dtoolutil/filename.cxx @@ -1208,16 +1208,14 @@ open_write(ofstream &stream, bool truncate) const { open_mode |= ios::trunc; } else { -#ifdef WIN32_VC - // Windows insists on having ios::in set to prevent the file from - // being truncated when we open it. Makes ios::trunc kind of + // Some systems insist on having ios::in set to prevent the file + // from being truncated when we open it. Makes ios::trunc kind of // pointless, doesn't it? On the other hand, setting ios::in also // seems to imply ios::nocreate (!), so we should only set this if // the file already exists. if (exists()) { open_mode |= ios::in; } -#endif } #ifdef HAVE_IOS_BINARY