Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1194)

Unified Diff: base/file_util_posix.cc

Issue 193128: Use MAC_OS_X_DEPLOYMENT_TARGET instead of rolling our own (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/compat_execinfo.h ('k') | build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_posix.cc
===================================================================
--- base/file_util_posix.cc (revision 26349)
+++ base/file_util_posix.cc (working copy)
@@ -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 @@
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);
« no previous file with comments | « base/compat_execinfo.h ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698