summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-07-30 16:41:30 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-02-21 12:37:51 +0100
commit6c694074e1d1de12ecc4f4c05cb7431425a86b60 (patch)
tree448b4d900d4288fdd5b2fda517acd0c5bdc69d2b /libavdevice
parentb8e58f0858116ac102fc116ce1bdf6727df1eb0c (diff)
avutil/x86/emms: Don't unnecessarily include lavu/cpu.h
Only include it if it is needed, namely if __MMX__ is undefined. X86 is currently the only arch where lavu/cpu.h is basically automatically included (for internal development): #if ARCH_X86 is true, lavu/internal.h (which is basically included everywhere) includes lavu/x86/emms.h which can mask missing inclusions of lavu/cpu.h if the developer works on x86/x64. This has happened in 8e825ec3ab09d877f12dcf05d76902a8bb9c8b11 and also earlier (see 6d2365882f281f9452b31b91edb2e6a2d4f5ff08). By including said header only if necessary ordinary developer machines will behave like non-x86 arches, so that missing inclusions of cpu.h won't go unnoticed any more. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavdevice')
0 files changed, 0 insertions, 0 deletions