diff --git a/libaegisub/ass/dialogue_parser.cpp b/libaegisub/ass/dialogue_parser.cpp index 554395fa38..30f6f48fd6 100644 --- a/libaegisub/ass/dialogue_parser.cpp +++ b/libaegisub/ass/dialogue_parser.cpp @@ -22,6 +22,8 @@ #include #include +#include + namespace { typedef std::vector TokenVec; diff --git a/libaegisub/ass/uuencode.cpp b/libaegisub/ass/uuencode.cpp index 182472926c..33d51210e9 100644 --- a/libaegisub/ass/uuencode.cpp +++ b/libaegisub/ass/uuencode.cpp @@ -16,6 +16,7 @@ #include +#include #include // Despite being called uuencoding by ass_specs.doc, the format is actually diff --git a/libaegisub/common/cajun/reader.cpp b/libaegisub/common/cajun/reader.cpp index 6f32d2ff45..3c0fa9222c 100644 --- a/libaegisub/common/cajun/reader.cpp +++ b/libaegisub/common/cajun/reader.cpp @@ -10,6 +10,7 @@ Author: Terry Caton #include #include +#include /* diff --git a/libaegisub/common/calltip_provider.cpp b/libaegisub/common/calltip_provider.cpp index de693e6377..a513316ec9 100644 --- a/libaegisub/common/calltip_provider.cpp +++ b/libaegisub/common/calltip_provider.cpp @@ -18,6 +18,7 @@ #include "libaegisub/ass/dialogue_parser.h" +#include #include namespace { diff --git a/libaegisub/common/character_count.cpp b/libaegisub/common/character_count.cpp index 4563157a18..74bb896678 100644 --- a/libaegisub/common/character_count.cpp +++ b/libaegisub/common/character_count.cpp @@ -22,6 +22,8 @@ #include #include +#include +#include #include #include diff --git a/libaegisub/common/mru.cpp b/libaegisub/common/mru.cpp index dd7cfde92b..a0d4aa80ee 100644 --- a/libaegisub/common/mru.cpp +++ b/libaegisub/common/mru.cpp @@ -22,6 +22,8 @@ #include "libaegisub/option.h" #include "libaegisub/option_value.h" +#include + namespace { const char *mru_names[] = { "Audio", diff --git a/libaegisub/include/libaegisub/file_mapping.h b/libaegisub/include/libaegisub/file_mapping.h index dde241f382..95964174dd 100644 --- a/libaegisub/include/libaegisub/file_mapping.h +++ b/libaegisub/include/libaegisub/file_mapping.h @@ -18,6 +18,7 @@ #include #include +#include namespace agi { // boost::interprocess::file_mapping is awesome and uses CreateFileA on Windows diff --git a/libaegisub/include/libaegisub/lua/ffi.h b/libaegisub/include/libaegisub/lua/ffi.h index 848cf08058..02e38ec211 100644 --- a/libaegisub/include/libaegisub/lua/ffi.h +++ b/libaegisub/include/libaegisub/lua/ffi.h @@ -18,6 +18,7 @@ #include #include +#include namespace agi { namespace lua { void do_register_lib_function(lua_State *L, const char *name, const char *type_name, void *func); diff --git a/libaegisub/unix/path.cpp b/libaegisub/unix/path.cpp index 7a2c9a4655..78a1bfa149 100644 --- a/libaegisub/unix/path.cpp +++ b/libaegisub/unix/path.cpp @@ -22,6 +22,8 @@ #include #include +#include "../../acconf.h" + #ifndef __APPLE__ #include #include diff --git a/src/aegisublocale.cpp b/src/aegisublocale.cpp index cc5f4e10db..0266e3b2fd 100644 --- a/src/aegisublocale.cpp +++ b/src/aegisublocale.cpp @@ -37,6 +37,7 @@ #include "compat.h" #include "options.h" #include "utils.h" +#include "acconf.h" #include diff --git a/src/audio_player.cpp b/src/audio_player.cpp index c46ba0a405..6345aa5066 100644 --- a/src/audio_player.cpp +++ b/src/audio_player.cpp @@ -37,6 +37,9 @@ #include "audio_controller.h" #include "factory_manager.h" #include "options.h" +#include "acconf.h" + +#include #include diff --git a/src/audio_provider_factory.cpp b/src/audio_provider_factory.cpp index d5904a532d..e8c2901943 100644 --- a/src/audio_provider_factory.cpp +++ b/src/audio_provider_factory.cpp @@ -29,6 +29,8 @@ #include +#include + using namespace agi; std::unique_ptr CreateAvisynthAudioProvider(fs::path const& filename, BackgroundRunner *); diff --git a/src/base_grid.h b/src/base_grid.h index 3349b03c75..70a2cc14f4 100644 --- a/src/base_grid.h +++ b/src/base_grid.h @@ -30,9 +30,10 @@ #include #include -#include #include #include +#include +#include namespace agi { struct Context; diff --git a/src/colour_button.cpp b/src/colour_button.cpp index 83671ebf3a..c9c9051582 100644 --- a/src/colour_button.cpp +++ b/src/colour_button.cpp @@ -18,6 +18,8 @@ #include "dialogs.h" +#include + #if BOOST_VERSION >= 106900 #include #else diff --git a/src/command/command.cpp b/src/command/command.cpp index d0419161c1..009749c6fa 100644 --- a/src/command/command.cpp +++ b/src/command/command.cpp @@ -22,6 +22,7 @@ #include #include "include/aegisub/hotkey.h" +#include #include namespace cmd { diff --git a/src/command/command.h b/src/command/command.h index 899cace053..17fc8aa6a8 100644 --- a/src/command/command.h +++ b/src/command/command.h @@ -18,7 +18,6 @@ #pragma once -#include #include #include @@ -28,6 +27,8 @@ #include +#include + namespace agi { struct Context; } #define CMD_NAME(a) const char* name() const override { return a; } diff --git a/src/dialog_align.cpp b/src/dialog_align.cpp index 93e5066363..9ed62d7f21 100644 --- a/src/dialog_align.cpp +++ b/src/dialog_align.cpp @@ -51,6 +51,7 @@ #include #include #include +#include #if BOOST_VERSION >= 106900 #include #else diff --git a/src/dialog_colorpicker.cpp b/src/dialog_colorpicker.cpp index 3aee645caa..f69a330d06 100644 --- a/src/dialog_colorpicker.cpp +++ b/src/dialog_colorpicker.cpp @@ -41,6 +41,7 @@ #include #include +#include #include #include diff --git a/src/dialog_dummy_video.cpp b/src/dialog_dummy_video.cpp index 833c84f0bb..974f2ed425 100644 --- a/src/dialog_dummy_video.cpp +++ b/src/dialog_dummy_video.cpp @@ -22,6 +22,7 @@ #include "options.h" #include "validators.h" #include "video_provider_dummy.h" +#include "wx/valtext.h" #include #include diff --git a/src/main.h b/src/main.h index de65b65da0..35b7be1c96 100644 --- a/src/main.h +++ b/src/main.h @@ -31,6 +31,8 @@ #include "aegisublocale.h" +#include + #ifndef wxUSE_EXCEPTIONS #error wxWidgets is compiled without exceptions support. Aegisub requires exceptions support in wxWidgets to run safely. #endif diff --git a/src/utils.h b/src/utils.h index bb82570d6b..dde7defa17 100644 --- a/src/utils.h +++ b/src/utils.h @@ -34,6 +34,7 @@ #include #include +#include #include #include diff --git a/src/video_frame.cpp b/src/video_frame.cpp index f105bfd537..56d800efe9 100644 --- a/src/video_frame.cpp +++ b/src/video_frame.cpp @@ -16,6 +16,7 @@ #include "video_frame.h" +#include #if BOOST_VERSION >= 106900 #include #else diff --git a/tests/tests/character_count.cpp b/tests/tests/character_count.cpp index 36d3e948bd..13e974c406 100644 --- a/tests/tests/character_count.cpp +++ b/tests/tests/character_count.cpp @@ -19,6 +19,8 @@ #include +#include + TEST(lagi_character_count, basic) { EXPECT_EQ(5, agi::CharacterCount("hello", agi::IGNORE_NONE)); }