[interprocess] compilation errors when BOOST_USE_WINDOWS_H is defined

If all I have is #define BOOST_USE_WINDOWS_H #include <boost/interprocess/smart_ptr/shared_ptr.hpp> I'm getting a whole bunch of compilation errors related to undefined types like win32_find_data_t, interprocess_filetime, etc. Anything I could do about this (Windows7, VS2005, VS2008, VS2010, Boost SVN trunk)? Regards Hartmut ------------------- Meet me at BoostCon http://boostcon.com

Hartmut Kaiser escribió:
If all I have is
#define BOOST_USE_WINDOWS_H #include <boost/interprocess/smart_ptr/shared_ptr.hpp>
I'm getting a whole bunch of compilation errors related to undefined types like win32_find_data_t, interprocess_filetime, etc.
Anything I could do about this (Windows7, VS2005, VS2008, VS2010, Boost SVN trunk)?
Regards Hartmut
Sorry, this is a bug ;-) I'll try to fix it ASAP, Ion

Also, when BOOST_USE_WINDOWS_H isn't defined, the signature for FileTimeToLocalFileTime is wrong -- the 2nd parameter (out) should not be const. This affects FileTimeToLocalFileTime's wrapper, file_time_to_local_file_time, also.

Adam Merz escribió:
Also, when BOOST_USE_WINDOWS_H isn't defined, the signature for FileTimeToLocalFileTime is wrong -- the 2nd parameter (out) should not be const. This affects FileTimeToLocalFileTime's wrapper, file_time_to_local_file_time, also.
Thanks! Best, Ion
participants (3)
-
Adam Merz
-
Hartmut Kaiser
-
Ion Gaztañaga