History

*/version.h: define FF_API macros unconditionally

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.

Anton Khirnov committed 5 years ago

Commit db932241 parent 9e8cdb25 files · +0 −48Browse files

Showing the changes to libavfilter (1 of 5 files). Show all

Unified · Split

libavfilter/version.h+0−6
@@ -50,14 +50,8 @@ · 49 unmodified lines
50 * the public API and may change, break or disappear at any time.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#define FF_API_SWS_PARAM_OPTION (LIBAVFILTER_VERSION_MAJOR < 9)53#define FF_API_SWS_PARAM_OPTION (LIBAVFILTER_VERSION_MAJOR < 9)
55#endif
56#ifndef FF_API_BUFFERSINK_ALLOC
57#define FF_API_BUFFERSINK_ALLOC (LIBAVFILTER_VERSION_MAJOR < 9)54#define FF_API_BUFFERSINK_ALLOC (LIBAVFILTER_VERSION_MAJOR < 9)
58#endif
59#ifndef FF_API_PAD_COUNT
60#define FF_API_PAD_COUNT (LIBAVFILTER_VERSION_MAJOR < 9)55#define FF_API_PAD_COUNT (LIBAVFILTER_VERSION_MAJOR < 9)
61#endif
62 56
63#endif /* AVFILTER_VERSION_H */57#endif /* AVFILTER_VERSION_H */

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