shithub: libvpx

Download patch

ref: 9bc8d5aab9ca5a2152006e226c26f3c1010c843f
parent: eebb648380157c6885d70e399369f687db699117
parent: d034bfa9475fef67340671d46a6f21258474cc97
author: John Koleszar <jkoleszar@google.com>
date: Wed Nov 28 05:19:44 EST 2012

Merge "avoid redefining DECLSPEC_DEPRECATED"

--- a/vpx/vpx_codec.h
+++ b/vpx/vpx_codec.h
@@ -49,15 +49,22 @@
 #ifndef DEPRECATED
 #if defined(__GNUC__) && __GNUC__
 #define DEPRECATED          __attribute__ ((deprecated))
-#define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */
 #elif defined(_MSC_VER)
 #define DEPRECATED
-#define DECLSPEC_DEPRECATED __declspec(deprecated) /**< \copydoc #DEPRECATED */
 #else
 #define DEPRECATED
+#endif
+#endif  /* DEPRECATED */
+
+#ifndef DECLSPEC_DEPRECATED
+#if defined(__GNUC__) && __GNUC__
 #define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */
+#elif defined(_MSC_VER)
+#define DECLSPEC_DEPRECATED __declspec(deprecated) /**< \copydoc #DEPRECATED */
+#else
+#define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */
 #endif
-#endif
+#endif  /* DECLSPEC_DEPRECATED */
 
     /*!\brief Decorator indicating a function is potentially unused */
 #ifdef UNUSED