Kaydet (Commit) 9db079b9 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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.
üst 9943a3ff
...@@ -127,6 +127,18 @@ namespace // private ...@@ -127,6 +127,18 @@ namespace // private
Type DataType; 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. /* At the moment it appears as if only MS Office pastes "public.html" to the clipboard.
*/ */
FlavorMap flavorMap[] = FlavorMap flavorMap[] =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment