OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 #ifndef VPX_CODEC_H | 43 #ifndef VPX_CODEC_H |
44 #define VPX_CODEC_H | 44 #define VPX_CODEC_H |
45 #include "vpx_integer.h" | 45 #include "vpx_integer.h" |
46 #include "vpx_image.h" | 46 #include "vpx_image.h" |
47 | 47 |
48 /*!\brief Decorator indicating a function is deprecated */ | 48 /*!\brief Decorator indicating a function is deprecated */ |
49 #ifndef DEPRECATED | 49 #ifndef DEPRECATED |
50 #if defined(__GNUC__) && __GNUC__ | 50 #if defined(__GNUC__) && __GNUC__ |
51 #define DEPRECATED __attribute__ ((deprecated)) | 51 #define DEPRECATED __attribute__ ((deprecated)) |
| 52 #elif defined(_MSC_VER) |
| 53 #define DEPRECATED |
| 54 #else |
| 55 #define DEPRECATED |
| 56 #endif |
| 57 #endif /* DEPRECATED */ |
| 58 |
| 59 #ifndef DECLSPEC_DEPRECATED |
| 60 #if defined(__GNUC__) && __GNUC__ |
52 #define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */ | 61 #define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */ |
53 #elif defined(_MSC_VER) | 62 #elif defined(_MSC_VER) |
54 #define DEPRECATED | |
55 #define DECLSPEC_DEPRECATED __declspec(deprecated) /**< \copydoc #DEPRECATED */ | 63 #define DECLSPEC_DEPRECATED __declspec(deprecated) /**< \copydoc #DEPRECATED */ |
56 #else | 64 #else |
57 #define DEPRECATED | |
58 #define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */ | 65 #define DECLSPEC_DEPRECATED /**< \copydoc #DEPRECATED */ |
59 #endif | 66 #endif |
60 #endif | 67 #endif /* DECLSPEC_DEPRECATED */ |
61 | 68 |
62 /*!\brief Decorator indicating a function is potentially unused */ | 69 /*!\brief Decorator indicating a function is potentially unused */ |
63 #ifdef UNUSED | 70 #ifdef UNUSED |
64 #elif __GNUC__ | 71 #elif __GNUC__ |
65 #define UNUSED __attribute__ ((unused)) | 72 #define UNUSED __attribute__ ((unused)) |
66 #else | 73 #else |
67 #define UNUSED | 74 #define UNUSED |
68 #endif | 75 #endif |
69 | 76 |
70 /*!\brief Current ABI version number | 77 /*!\brief Current ABI version number |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 unsigned int num_maps); | 549 unsigned int num_maps); |
543 | 550 |
544 /*!@} - end defgroup cap_xma*/ | 551 /*!@} - end defgroup cap_xma*/ |
545 /*!@} - end defgroup codec*/ | 552 /*!@} - end defgroup codec*/ |
546 | 553 |
547 | 554 |
548 #endif | 555 #endif |
549 #ifdef __cplusplus | 556 #ifdef __cplusplus |
550 } | 557 } |
551 #endif | 558 #endif |
OLD | NEW |