History

avoid redefining DECLSPEC_DEPRECATED

fixes, e.g.: In file included from ../vpx/internal/../vpx_decoder.h:33:0, from ../vpx/internal/vpx_codec_internal.h:46, from ../vp8/common/onyx.h:21, from ../vp8/encoder/block.h:15, from ../test/subtract_test.cc:18: ../vpx/internal/../vpx_codec.h:52:0: warning: "DECLSPEC_DEPRECATED" redefined /usr/x86_64-w64-mingw32/sys-root/mingw/include/winnt.h:164:0: note: this is the location of the previous definition

James Zern committed 13 years ago

Commit d034bfa1 parent 464b1df1 file · +10 −3Browse files

Unified · Split

vpx/vpx_codec.h+10−3
@@ -49,15 +49,22 @@ extern "C" { · 48 unmodified lines
4949 #ifndef DEPRECATED
5050 #if defined(__GNUC__) && __GNUC__
5151 #define DEPRECATED __attribute__ ((deprecated))
52−#define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */
5352 #elif defined(_MSC_VER)
5453 #define DEPRECATED
55−#define DECLSPEC_DEPRECATED __declspec(deprecated) /**< \copydoc #DEPRECATED */
5654 #else
5755 #define DEPRECATED
58−#define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */
5956 #endif
57+#endif /* DEPRECATED */
58+
59+#ifndef DECLSPEC_DEPRECATED
60+#if defined(__GNUC__) && __GNUC__
61+#define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */
62+#elif defined(_MSC_VER)
63+#define DECLSPEC_DEPRECATED __declspec(deprecated) /**< \copydoc #DEPRECATED */
64+#else
65+#define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */
6066 #endif
67+#endif /* DECLSPEC_DEPRECATED */
6168
6269 /*!\brief Decorator indicating a function is potentially unused */
6370 #ifdef UNUSED

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t