diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 17:31:25 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 17:31:25 +0000 |
commit | 3224dcddf987d47154c3232d1974a9d4ba517c8a (patch) | |
tree | 4f2a9c21f2f44550b76340c3bcc5b88dc79c1940 /base/file_util_posix.cc | |
parent | 48c70517e3bb914c4157e27fb0d70492f4f76cbe (diff) | |
download | chromium_src-3224dcddf987d47154c3232d1974a9d4ba517c8a.zip chromium_src-3224dcddf987d47154c3232d1974a9d4ba517c8a.tar.gz chromium_src-3224dcddf987d47154c3232d1974a9d4ba517c8a.tar.bz2 |
Use MAC_OS_X_DEPLOYMENT_TARGET instead of rolling our own macro.
Allow the deployment target and SDK to be overridden by GYP variables.
Review URL: http://codereview.chromium.org/193128
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r-- | base/file_util_posix.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index 7c212c0..7274d76 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -18,6 +18,10 @@ #include <time.h> #include <unistd.h> +#if defined(OS_MACOSX) +#include <AvailabilityMacros.h> +#endif + #include <fstream> #include "base/basictypes.h" @@ -83,7 +87,9 @@ class LocaleAwareComparator { namespace file_util { -#if defined(OS_FREEBSD) || defined(SUPPORT_MACOSX_10_4) +#if defined(OS_FREEBSD) || \ + (defined(OS_MACOSX) && \ + MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5) typedef struct stat stat_wrapper_t; static int CallStat(const char *path, stat_wrapper_t *sb) { return stat(path, sb); |