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
5050 * the public API and may change, break or disappear at any time.
5151 */
5252
53−#ifndef FF_API_SWS_PARAM_OPTION
5453 #define FF_API_SWS_PARAM_OPTION (LIBAVFILTER_VERSION_MAJOR < 9)
55−#endif
56−#ifndef FF_API_BUFFERSINK_ALLOC
5754 #define FF_API_BUFFERSINK_ALLOC (LIBAVFILTER_VERSION_MAJOR < 9)
58−#endif
59−#ifndef FF_API_PAD_COUNT
6055 #define FF_API_PAD_COUNT (LIBAVFILTER_VERSION_MAJOR < 9)
61−#endif
6256
6357 #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