summaryrefslogtreecommitdiff
path: root/audio/mp3plot/files/patch-src_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mp3plot/files/patch-src_macros.h')
-rw-r--r--audio/mp3plot/files/patch-src_macros.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/mp3plot/files/patch-src_macros.h b/audio/mp3plot/files/patch-src_macros.h
new file mode 100644
index 000000000000..a6e8f1f8b7de
--- /dev/null
+++ b/audio/mp3plot/files/patch-src_macros.h
@@ -0,0 +1,11 @@
+--- src/macros.h.orig 2009-04-14 02:21:18 UTC
++++ src/macros.h
+@@ -34,7 +34,7 @@
+ // References of interest:
+ // <http://sourcefrog.net/weblog/software/languages/C/unused.html>
+ #ifndef UNUSED_
+-# ifdef __GNUC__
++# if (defined(__GNUC__) && __GNUC__ > 3)
+ # define UNUSED_ __attribute__((unused))
+ # define DEPRECATED_ __attribute__((deprecated))
+ # // MSVC (_MSC_VER) doesn't seem to have an unused attribute (__declspec(...))