From 1010f7d1107f4df30be4a6d97ddeead2d4f3e585 Mon Sep 17 00:00:00 2001 From: "erikkay@google.com" Date: Wed, 6 Aug 2008 16:29:44 +0000 Subject: Refactoring file_util into file_util and file_util_win. Also fix windows dependencies in path_service.cc. One questionable decision here was to put GetCurrentDirectory and SetCurrentDirectory into file_util_win.cc. I could have kept the logic in path_service.cc with #ifdefs or I could have split up path_service.cc into path_service_win.cc, etc. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@436 0039d316-1c4b-4281-b951-d872f2087c98 --- base/path_service.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'base/path_service.h') diff --git a/base/path_service.h b/base/path_service.h index 861c9b5..e018516 100644 --- a/base/path_service.h +++ b/base/path_service.h @@ -30,6 +30,16 @@ #ifndef BASE_PATH_SERVICE_H__ #define BASE_PATH_SERVICE_H__ +#include "build/build_config.h" +#ifdef OS_WIN +// TODO(erikkay): this should be removable, but because SetCurrentDirectory +// is the name of a Windows function, it gets macro-ized to SetCurrentDirectoryW +// by windows.h, which leads to a different name in the header vs. the impl. +// Even if we could fix that, it would still hose all callers of the function. +// The right thing is likely to rename. +#include +#endif + #include #include "base/base_paths.h" -- cgit v1.1