summaryrefslogtreecommitdiff
path: root/vcl/aqua
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-09-28 16:11:03 +0300
committerTor Lillqvist <tml@iki.fi>2011-09-28 17:43:35 +0300
commit9db079b96b7682f6635f7a329751bf83844079ca (patch)
treecb4fbdda418ea8e3750053e3ad768f11cbd5623d /vcl/aqua
parent9943a3ff49008576f9ec3aba72947687633eda37 (diff)
WaE: NSPICTPboardType is deprecated in 10.6 and later
So turn off -Wdeprecated-declarations for most of this source file when using gcc 4.2.1 or later.
Diffstat (limited to 'vcl/aqua')
-rw-r--r--vcl/aqua/source/dtrans/DataFlavorMapping.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcl/aqua/source/dtrans/DataFlavorMapping.cxx b/vcl/aqua/source/dtrans/DataFlavorMapping.cxx
index 5c2259ff22c6..8514d9a9ae9d 100644
--- a/vcl/aqua/source/dtrans/DataFlavorMapping.cxx
+++ b/vcl/aqua/source/dtrans/DataFlavorMapping.cxx
@@ -127,6 +127,18 @@ namespace // private
Type DataType;
};
+// NSPICTPboardType is deprecated in 10.6 and later
+
+#if defined __GNUC__
+#define GCC_VERSION (__GNUC__ * 10000 \
+ + __GNUC_MINOR__ * 100 \
+ + __GNUC_PATCHLEVEL__)
+#if GCC_VERSION >= 40201
+// #pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+#endif
+
/* At the moment it appears as if only MS Office pastes "public.html" to the clipboard.
*/
FlavorMap flavorMap[] =