various: drop unused #include "config.h"

Most sources don't need config.h.
The inclusion only leads to lots of unneeded recompilation if the
configuration is changed.
This commit is contained in:
Thomas Weißschuh 2023-02-18 19:29:01 +00:00 committed by Dudemanguy
parent a90355660c
commit 9efce6d4ae
84 changed files with 0 additions and 125 deletions

View File

@ -34,7 +34,6 @@
#include <math.h>
#include <string.h>
#include "config.h"
#include "options/options.h"
#include "options/m_config.h"
#include "options/m_option.h"

View File

@ -15,7 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include "ao.h"
#include "internal.h"
#include "audio/format.h"

View File

@ -17,7 +17,6 @@
#include <CoreAudio/HostTime.h>
#include "config.h"
#include "ao.h"
#include "internal.h"
#include "audio/format.h"

View File

@ -39,7 +39,6 @@
#include <libavutil/intreadwrite.h>
#include <libavutil/intfloat.h>
#include "config.h"
#include "ao.h"
#include "internal.h"
#include "audio/format.h"

View File

@ -28,7 +28,6 @@
#include "mpv_talloc.h"
#include "config.h"
#include "osdep/timer.h"
#include "options/m_option.h"
#include "common/common.h"

View File

@ -19,8 +19,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>

View File

@ -35,7 +35,6 @@
#endif
#include <sys/types.h>
#include "config.h"
#include "audio/format.h"
#include "common/msg.h"
#include "options/options.h"

View File

@ -19,8 +19,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -32,7 +32,6 @@
#include "options/m_option.h"
#include "ao.h"
#include "audio/format.h"
#include "config.h"
#include "internal.h"
#include "osdep/timer.h"

View File

@ -28,7 +28,6 @@
#include <pulse/pulseaudio.h>
#include "config.h"
#include "audio/format.h"
#include "common/msg.h"
#include "options/m_option.h"

View File

@ -18,7 +18,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include "audio/format.h"
#include "mpv_talloc.h"
#include "ao.h"

View File

@ -17,8 +17,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#include "config.h"
#include <sys/types.h>
#include <poll.h>
#include <errno.h>

View File

@ -23,7 +23,6 @@
#include <libavutil/avutil.h>
#include <libavutil/timestamp.h>
#include "config.h"
#include "encode_lavc.h"
#include "common/av_common.h"
#include "common/global.h"

View File

@ -16,7 +16,6 @@
*/
#include <assert.h>
#include "config.h"
#include "playlist.h"
#include "common/common.h"
#include "common/global.h"

View File

@ -22,7 +22,6 @@
#include <libavutil/common.h>
#include "config.h"
#include "common/common.h"
#include "options/options.h"
#include "common/msg.h"

View File

@ -15,8 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -20,8 +20,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdlib.h>
#include <stdbool.h>
#include <inttypes.h>

View File

@ -23,8 +23,6 @@
#include <libavcodec/avcodec.h>
#include <libavutil/intreadwrite.h>
#include "config.h"
#include "common/av_common.h"
#include "common/common.h"
#include "demux.h"

View File

@ -1,5 +1,3 @@
#include "config.h"
#include "audio/aframe.h"
#include "audio/chmap_sel.h"
#include "audio/format.h"

View File

@ -27,7 +27,6 @@
#include <libavutil/common.h>
#include <libavutil/rational.h>
#include "config.h"
#include "options/options.h"
#include "common/msg.h"
#include "options/m_config.h"

View File

@ -22,8 +22,6 @@
#include <libavutil/mathematics.h>
#include <libswresample/swresample.h>
#include "config.h"
#include "audio/aframe.h"
#include "audio/fmt-conversion.h"
#include "audio/format.h"

View File

@ -26,8 +26,6 @@
#include <sys/stat.h>
#include <sys/un.h>
#include "config.h"
#include "osdep/io.h"
#include "osdep/threads.h"

View File

@ -18,8 +18,6 @@
#include <windows.h>
#include <sddl.h>
#include "config.h"
#include "osdep/io.h"
#include "osdep/threads.h"
#include "osdep/windows_utils.h"

View File

@ -15,8 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include "common/msg.h"
#include "input/input.h"
#include "misc/json.h"

View File

@ -18,8 +18,6 @@
/// \file
/// \ingroup Properties
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View File

@ -22,8 +22,6 @@
#include <assert.h>
#include <stdbool.h>
#include "config.h"
#include "osdep/io.h"
#include "common/global.h"
#include "common/msg.h"

View File

@ -15,8 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View File

@ -4,8 +4,6 @@
#define BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE (0x0001)
#endif
#include "config.h"
#include "common/common.h"
#include "osdep/io.h"
#include "osdep/terminal.h"

View File

@ -17,8 +17,6 @@
#include <pthread.h>
#include "config.h"
#include "common/common.h"
#include "common/msg.h"
#include "common/msg_control.h"

View File

@ -17,8 +17,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdlib.h>
#include <stdint.h>
#include <string.h>

View File

@ -18,7 +18,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <fcntl.h>
#include <stdio.h>
#include <stdint.h>

View File

@ -23,7 +23,6 @@
#include <sys/time.h>
#include <mach/mach_time.h>
#include "config.h"
#include "common/msg.h"
#include "timer.h"

View File

@ -22,7 +22,6 @@
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include "config.h"
#include "timer.h"
void mp_sleep_us(int64_t us)

View File

@ -22,7 +22,6 @@
#include <math.h>
#include <assert.h>
#include "config.h"
#include "mpv_talloc.h"
#include "common/msg.h"

View File

@ -31,7 +31,6 @@
#include <libavutil/avstring.h>
#include <libavutil/common.h>
#include "config.h"
#include "mpv_talloc.h"
#include "client.h"
#include "common/av_common.h"

View File

@ -26,7 +26,6 @@
#include <libavutil/md5.h>
#include "config.h"
#include "mpv_talloc.h"
#include "osdep/io.h"

View File

@ -23,7 +23,6 @@
#include <libavutil/avutil.h>
#include "config.h"
#include "mpv_talloc.h"
#include "misc/thread_pool.h"

View File

@ -20,7 +20,6 @@
#include <errno.h>
#include <assert.h>
#include "config.h"
#include "mpv_talloc.h"
#include "osdep/io.h"

View File

@ -22,7 +22,6 @@
#include <limits.h>
#include <assert.h>
#include "config.h"
#include "mpv_talloc.h"
#include "common/msg.h"

View File

@ -23,7 +23,6 @@
#include "client.h"
#include "command.h"
#include "config.h"
#include "core.h"
#include "mpv_talloc.h"
#include "screenshot.h"

View File

@ -21,8 +21,6 @@
#include <libavcodec/avcodec.h>
#include "config.h"
#include "osdep/io.h"
#include "mpv_talloc.h"

View File

@ -21,7 +21,6 @@
#include <math.h>
#include <assert.h>
#include "config.h"
#include "mpv_talloc.h"
#include "common/msg.h"

View File

@ -21,7 +21,6 @@
#include <math.h>
#include <assert.h>
#include "config.h"
#include "mpv_talloc.h"
#include "common/msg.h"

View File

@ -35,7 +35,6 @@
#include <linux/dvb/dmx.h>
#include <linux/dvb/frontend.h>
#include "config.h"
#include "osdep/io.h"
#include "dvbin.h"
#include "dvb_tune.h"

View File

@ -15,8 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include "stream.h"
static int open_f(stream_t *stream)

View File

@ -1,5 +1,3 @@
#include "config.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>

View File

@ -20,8 +20,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>

View File

@ -17,8 +17,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdlib.h>
#include <string.h>

View File

@ -22,7 +22,6 @@
#include <assert.h>
#include <pthread.h>
#include "config.h"
#include "demux/demux.h"
#include "sd.h"
#include "dec_sub.h"

View File

@ -23,8 +23,6 @@
#include <libavutil/common.h>
#include <libavutil/opt.h>
#include "config.h"
#include "mpv_talloc.h"
#include "common/msg.h"
#include "common/av_common.h"

View File

@ -21,8 +21,6 @@
#include <string.h>
#include <assert.h>
#include "config.h"
#include "mpv_talloc.h"
#include "misc/bstr.h"
#include "common/common.h"

View File

@ -24,8 +24,6 @@
#include <libavutil/intreadwrite.h>
#include <libavutil/opt.h>
#include "config.h"
#include "mpv_talloc.h"
#include "common/msg.h"
#include "common/av_common.h"

View File

@ -21,8 +21,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdint.h>
#include <math.h>
#include <assert.h>

View File

@ -15,8 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include "hwdec.h"
#include "options/m_config.h"

View File

@ -30,8 +30,6 @@
#include <libavutil/intreadwrite.h>
#include <libavutil/pixdesc.h>
#include "config.h"
#include "mpv_talloc.h"
#include "common/global.h"
#include "common/msg.h"

View File

@ -15,8 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <libavutil/hwcontext.h>
#include "hwdec.h"

View File

@ -18,8 +18,6 @@
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -27,7 +25,6 @@
#include <assert.h>
#include <libavutil/common.h>
#include "config.h"
#include "common/msg.h"
#include "filters/filter.h"
#include "filters/filter_internal.h"

View File

@ -29,8 +29,6 @@
#include <libavutil/rational.h>
#include <libavutil/cpu.h>
#include "config.h"
#include "common/msg.h"
#include "options/m_option.h"
#include "options/path.h"

View File

@ -23,7 +23,6 @@
#include <libavutil/hwcontext.h>
#include <libavutil/hwcontext_vaapi.h>
#include "config.h"
#include "options/options.h"
#include "filters/filter.h"
#include "filters/filter_internal.h"

View File

@ -20,7 +20,6 @@
#include "video/img_format.h"
#include "fmt-conversion.h"
#include "config.h"
static const struct {
int fmt;

View File

@ -23,8 +23,6 @@
#include <libavutil/pixfmt.h>
#include <libavutil/pixdesc.h>
#include "config.h"
#include "video/img_format.h"
#include "video/mp_image.h"
#include "video/fmt-conversion.h"

View File

@ -35,7 +35,6 @@
#include "mpv_talloc.h"
#include "config.h"
#include "common/av_common.h"
#include "common/common.h"
#include "hwdec.h"

View File

@ -15,8 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stddef.h>
#include <stdbool.h>
#include <pthread.h>

View File

@ -34,8 +34,6 @@
#include "osdep/macosx_compat.h"
#include "osdep/macosx_events_objc.h"
#include "config.h"
#include "osdep/timer.h"
#include "osdep/macosx_application.h"
#include "osdep/macosx_application_objc.h"

View File

@ -19,8 +19,6 @@
#include <d3d11.h>
#include <d3d11_1.h>
#include "config.h"
#include "common/common.h"
#include "options/m_config.h"
#include "osdep/windows_utils.h"

View File

@ -3,7 +3,6 @@
#include "video/out/vo.h"
#include "video/csputils.h"
#include "config.h"
#include "ra.h"
struct ra_ctx_opts {

View File

@ -19,7 +19,6 @@
#include <libavutil/hwcontext_drm.h>
#include "config.h"
#include "video/out/gpu/hwdec.h"
struct dmabuf_interop {

View File

@ -15,7 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include "dmabuf_interop.h"
#include <drm_fourcc.h>

View File

@ -18,7 +18,6 @@
#include <errno.h>
#include <unistd.h>
#include "config.h"
#include "dmabuf_interop.h"
#include "video/out/placebo/ra_pl.h"
#include "video/out/placebo/utils.h"

View File

@ -15,7 +15,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "video/out/wldmabuf/ra_wldmabuf.h"
#include "config.h"
#include "dmabuf_interop.h"
static bool mapper_init(struct ra_hwdec_mapper *mapper,

View File

@ -17,7 +17,6 @@
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include "hwdec_cuda.h"
#include "options/m_config.h"
#include "video/out/opengl/formats.h"

View File

@ -1,4 +1,3 @@
#include "config.h"
#include "libmpv/render_gl.h"
#include "libmpv.h"
#include "sub/osd.h"

View File

@ -25,8 +25,6 @@
#include <libavutil/hwcontext.h>
#include "config.h"
#include "video/out/gpu/hwdec.h"
#include "video/mp_image_pool.h"
#include "ra_gl.h"

View File

@ -26,8 +26,6 @@
#include <libavutil/hwcontext.h>
#include "config.h"
#include "video/mp_image_pool.h"
#include "video/out/gpu/hwdec.h"
#include "ra_gl.h"

View File

@ -26,8 +26,6 @@
#include <libavutil/common.h>
#include "config.h"
#include "mpv_talloc.h"
#include "common/common.h"
#include "misc/bstr.h"

View File

@ -24,7 +24,6 @@
#include <libswscale/swscale.h>
#include "config.h"
#include "misc/bstr.h"
#include "osdep/io.h"
#include "options/m_config.h"

View File

@ -23,7 +23,6 @@
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "common/common.h"
#include "options/options.h"
#include "video/fmt-conversion.h"

View File

@ -7,8 +7,6 @@
#include <pthread.h>
#include <assert.h>
#include "config.h"
#include "mpv_talloc.h"
#include "common/common.h"
#include "misc/bstr.h"

View File

@ -44,7 +44,6 @@
#include "video/mp_image.h"
#include "win_state.h"
#include "config.h"
#include "vo.h"
struct formatmap_entry {

View File

@ -28,7 +28,6 @@
#include <X11/Xutil.h>
#include <va/va_x11.h>
#include "config.h"
#include "common/msg.h"
#include "video/out/vo.h"
#include "video/mp_image_pool.h"

View File

@ -31,7 +31,6 @@
#include <limits.h>
#include <assert.h>
#include "config.h"
#include "video/vdpau.h"
#include "video/vdpau_mixer.h"
#include "video/hwdec.h"

View File

@ -24,7 +24,6 @@
#include <libswscale/swscale.h>
#include "config.h"
#include "vo.h"
#include "video/csputils.h"
#include "video/mp_image.h"

View File

@ -29,8 +29,6 @@
#include <libavutil/common.h>
#include "config.h"
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>

View File

@ -39,7 +39,6 @@
#include <X11/extensions/Xpresent.h>
#include <X11/extensions/Xrandr.h>
#include "config.h"
#include "misc/bstr.h"
#include "options/options.h"
#include "options/m_config.h"