Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54032 - trunk/libs/filesystem/src
From: bdawes_at_[hidden]
Date: 2009-06-17 18:50:11


Author: bemandawes
Date: 2009-06-17 18:50:10 EDT (Wed, 17 Jun 2009)
New Revision: 54032
URL: http://svn.boost.org/trac/boost/changeset/54032

Log:
Filesystem: fix #3172, ECV++ 9 missing <sys/utime.h>. The fix applied was to include <ctime> instead. This is the correct header; the previous song-and-dance was workaround on top of workaround from years ago. This change will break any Windows libraries that don't provide <ctime>, but if that happens workarounds specific to those libraries can be added. That's better than cluttering up the code with workarounds no longer needed.
Text files modified:
   trunk/libs/filesystem/src/operations.cpp | 9 +--------
   1 files changed, 1 insertions(+), 8 deletions(-)

Modified: trunk/libs/filesystem/src/operations.cpp
==============================================================================
--- trunk/libs/filesystem/src/operations.cpp (original)
+++ trunk/libs/filesystem/src/operations.cpp 2009-06-17 18:50:10 EDT (Wed, 17 Jun 2009)
@@ -54,14 +54,7 @@
 
 # if defined(BOOST_WINDOWS_API)
 # include <windows.h>
-# if defined(__BORLANDC__) || defined(__MWERKS__)
-# if defined(__BORLANDC__)
- using std::time_t;
-# endif
-# include <utime.h>
-# else
-# include <sys/utime.h>
-# endif
+# include <ctime> // for time_t
 
 # else // BOOST_POSIX_API
 # include <sys/types.h>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk