Keep including the full version.h when headers are included externally
This avoids unnecessary churn and build breakage for users, by making sure the whole version.h is included like it has been so far, while keeping the benefit of not needing to rebuild most files in the ffmpeg tree on minor/micro bumps. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
fce0127642
commit
2d368392a5
8 changed files with 44 additions and 7 deletions
|
|
@ -126,6 +126,12 @@
|
|||
#include "libavutil/samplefmt.h"
|
||||
|
||||
#include "libswresample/version_major.h"
|
||||
#ifndef HAVE_AV_CONFIG_H
|
||||
/* When included as part of the ffmpeg build, only include the major version
|
||||
* to avoid unnecessary rebuilds. When included externally, keep including
|
||||
* the full version information. */
|
||||
#include "libswresample/version.h"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @name Option constants
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue