]> git.sesse.net Git - ffmpeg/commit
x86: get_cpu_flags: add necessary ifdefs around function body
authorDiego Biurrun <diego@biurrun.de>
Wed, 5 Sep 2012 18:49:28 +0000 (20:49 +0200)
committerDiego Biurrun <diego@biurrun.de>
Thu, 4 Oct 2012 17:29:14 +0000 (19:29 +0200)
commita7329e5fc22433dfeaf7af22fb40fe3cada21385
tree6f5b3cffe2e60d5f6455205faf5856bda994f7b8
parentf6fbce761ea697f437cef721ec6711ffcbd1ac1f
x86: get_cpu_flags: add necessary ifdefs around function body

ff_get_cpu_flags_x86() requires cpuid(), which is conditionally defined
elsewhere in the file.  Surrounding the function body with ifdefs allows
building even when cpuid is not defined.  An empty cpuflags mask is
returned in this case.
libavutil/x86/cpu.c