| 3608 | struct local |
| 3609 | { |
| 3610 | static bool getcwd_error(error_code* ec) |
| 3611 | { |
| 3612 | const int err = errno; |
| 3613 | return error((err != ERANGE |
| 3614 | #if defined(__MSL__) && (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) |
| 3615 | // bug in some versions of the Metrowerks C lib on the Mac: wrong errno set |
| 3616 | && err != 0 |
| 3617 | #endif |
| 3618 | ) ? err : 0, |
| 3619 | ec, "boost::filesystem::current_path"); |
| 3620 | } |
| 3621 | }; |
| 3622 | |
| 3623 | path cur; |