• Martin Storsjö's avatar
    options_table: Remove a now unnecessary include of config.h · 1a469a5e
    Martin Storsjö authored
    The include of config.h was added in 2012 in 1d9c2dc8, due to
    the use of CONFIG_SNOW_ENCODER ifdefs within options_table.h.
    When the snow codec was dropped later (in a0c5917f in 2013),
    this include no longer served any purpose.
    
    options_table.h is included in builds for the host as well, when
    building documentation. config.h should not be included in code
    that is built for the host, since it can contain workarounds
    for the target compiler/environment, like adding a missing define
    of restrict, defining getenv(x) to NULL for environments that lack
    getenv.
    
    The seemingly innocent include reordering in 2025d378 broke
    builds that have getenv(x) defined to NULL in config.h (Windows CE
    and Windows Phone/RT), since libavcodec/options_table.h include
    config.h, while libavformat/options_table.h end up bringing in
    more system headers, and those system headers can contain a proper
    definition of getenv, which clash with the getenv define in config.h.
    This was avoided earlier as long as libavformat/options_table.h (or
    avformat.h) was included before libavcodec/options_table.h.
    
    This fixes builds for Windows Phone/RT and CE.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    1a469a5e
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
arch.mak Loading commit data...
avconv.c Loading commit data...
avconv.h Loading commit data...
avconv_dxva2.c Loading commit data...
avconv_filter.c Loading commit data...
avconv_opt.c Loading commit data...
avconv_qsv.c Loading commit data...
avconv_vaapi.c Loading commit data...
avconv_vda.c Loading commit data...
avconv_vdpau.c Loading commit data...
avplay.c Loading commit data...
avprobe.c Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
cmdutils_common_opts.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
library.mak Loading commit data...
version.sh Loading commit data...