There is no reason to wrap them in #ifndef guards, they should only be defined here and nowhere else. The define guards just add the possibility to accidentally use the same FF_API name in different libraries.
Showing the changes to libavfilter (1 of 5 files). Show all
Unified · Split
| @@ -50,14 +50,8 @@ · 49 unmodified lines | ||
| 50 | 50 | * the public API and may change, break or disappear at any time. |
| 51 | 51 | */ |
| 52 | 52 | |
| 53 | −#ifndef FF_API_SWS_PARAM_OPTION | |
| 54 | 53 | #define FF_API_SWS_PARAM_OPTION (LIBAVFILTER_VERSION_MAJOR < 9) |
| 55 | −#endif | |
| 56 | −#ifndef FF_API_BUFFERSINK_ALLOC | |
| 57 | 54 | #define FF_API_BUFFERSINK_ALLOC (LIBAVFILTER_VERSION_MAJOR < 9) |
| 58 | −#endif | |
| 59 | −#ifndef FF_API_PAD_COUNT | |
| 60 | 55 | #define FF_API_PAD_COUNT (LIBAVFILTER_VERSION_MAJOR < 9) |
| 61 | −#endif | |
| 62 | 56 | |
| 63 | 57 | #endif /* AVFILTER_VERSION_H */ |