summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-03-27 11:35:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-03-27 11:44:45 +0100
commitc1ea7a2fb43a8f51134fafba78b3acc68f10fcf4 (patch)
tree93c1a18a3a539e2024affd2d1ae67d1311e8c81d
parent5a88a8193a9ff81237c202e647d1c19eb827c0d0 (diff)
At least Mac OS X SDK 10.7 doesn't experience TimeValue clash here
(causes -Werror,-Wunused-macros, rather) Change-Id: I1dc05a5cf73aec7827df662342f5d9189215e64e
-rw-r--r--sal/osl/unx/file.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index c6f55dc16c02..bffca6dfef10 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -43,9 +43,13 @@
#define HAVE_O_EXLOCK
// add MACOSX Time Value
+#if MACOSX_SDK_VERSION < 1070
#define TimeValue CFTimeValue
+#endif
#include <CoreFoundation/CoreFoundation.h>
+#if MACOSX_SDK_VERSION < 1070
#undef TimeValue
+#endif
#endif /* MACOSX */