From: Beman Dawes (bdawes_at_[hidden])
Date: 2005-09-27 16:09:57
"Angus Leeming" <angus.leeming_at_[hidden]> wrote in message
> Angus Leeming wrote:
>> you use the WinAPI call GetFileAttributesExA only twice in
>> Boost.Filesystem, in _is_empty and file_size, but that means that the
>> code won't run on Windows 95:
>> file is linked to missing export KERNEL32.DLL:GetFileAttributesExA
>> The msdn docs
>> suggest that Win95 support requires only that you grab NewAPIs.h from the
>> SDK Update Site.
> Actually, Beman, can I suggest the following patch? This allows the
> code to compile unchanged out of the box. If I want to support Win95 I
> to define WANT_GETFILEATTRIBUTESEX_WRAPPER and provide NewAPIs.h.
> I can define the WANT_GETFILEATTRIBUTESEX_WRAPPER macro in my own config.h
> header file which is already #included by your library through
> Thereafter, in some source file of my own I need only add
> #include <config.h>
> #define COMPILE_NEWAPIS_STUBS
> #include <NewAPIs.h>
> #undef COMPILE_NEWAPIS_STUBS
> and all works beautifully.
Have you tried the Boost.Filesystem "i18n" branch from CVS?
In a week I'm due to present a proposal to the Library Working Group to add
what is essentially Boost.Filesystem i18n to TR2. See
Assuming the reaction is favorable, the plan is to move the i18n branch to
the CVS HEAD. Thus while I'm quite interested in your suggestions, I'd like
to see if they apply to the i18n code rather than the 1.33 code, which is
essentially legacy code at this point.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk