Skip to content

Commit

Permalink
add missing includes
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Sep 28, 2023
1 parent 34cb5bc commit 00cf496
Show file tree
Hide file tree
Showing 23 changed files with 35 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libaegisub/ass/dialogue_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <boost/locale/boundary/segment.hpp>
#include <boost/locale/boundary/types.hpp>

#include <cstring>

namespace {

typedef std::vector<agi::ass::DialogueToken> TokenVec;
Expand Down
1 change: 1 addition & 0 deletions libaegisub/ass/uuencode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include <libaegisub/ass/uuencode.h>

#include <cstring>
#include <algorithm>

// Despite being called uuencoding by ass_specs.doc, the format is actually
Expand Down
1 change: 1 addition & 0 deletions libaegisub/common/cajun/reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Author: Terry Caton

#include <boost/interprocess/streams/bufferstream.hpp>
#include <cassert>
#include <algorithm>

/*
Expand Down
1 change: 1 addition & 0 deletions libaegisub/common/calltip_provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include "libaegisub/ass/dialogue_parser.h"

#include <cstring>
#include <algorithm>

namespace {
Expand Down
2 changes: 2 additions & 0 deletions libaegisub/common/character_count.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <unicode/uchar.h>
#include <unicode/utf8.h>

#include <algorithm>
#include <cstring>
#include <mutex>
#include <unicode/brkiter.h>

Expand Down
2 changes: 2 additions & 0 deletions libaegisub/common/mru.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include "libaegisub/option.h"
#include "libaegisub/option_value.h"

#include <algorithm>

namespace {
const char *mru_names[] = {
"Audio",
Expand Down
1 change: 1 addition & 0 deletions libaegisub/include/libaegisub/file_mapping.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <boost/interprocess/detail/os_file_functions.hpp>
#include <cstdint>
#include <memory>

namespace agi {
// boost::interprocess::file_mapping is awesome and uses CreateFileA on Windows
Expand Down
1 change: 1 addition & 0 deletions libaegisub/include/libaegisub/lua/ffi.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

#include <cstdlib>
#include <lua.hpp>
#include <cstring>

namespace agi { namespace lua {
void do_register_lib_function(lua_State *L, const char *name, const char *type_name, void *func);
Expand Down
2 changes: 2 additions & 0 deletions libaegisub/unix/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <boost/filesystem/operations.hpp>
#include <pwd.h>

#include "../../acconf.h"

#ifndef __APPLE__
#include <fstream>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions src/aegisublocale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "compat.h"
#include "options.h"
#include "utils.h"
#include "acconf.h"

#include <libaegisub/path.h>

Expand Down
3 changes: 3 additions & 0 deletions src/audio_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
#include "audio_controller.h"
#include "factory_manager.h"
#include "options.h"
#include "acconf.h"

#include <array>

#include <boost/range/iterator_range.hpp>

Expand Down
2 changes: 2 additions & 0 deletions src/audio_provider_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

#include <boost/range/iterator_range.hpp>

#include <wx/choicdlg.h>

using namespace agi;

std::unique_ptr<AudioProvider> CreateAvisynthAudioProvider(fs::path const& filename, BackgroundRunner *);
Expand Down
3 changes: 2 additions & 1 deletion src/base_grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@
#include <libaegisub/signal.h>

#include <memory>
#include <string>
#include <vector>
#include <wx/window.h>
#include <wx/scrolbar.h>
#include <wx/brush.h>

namespace agi {
struct Context;
Expand Down
2 changes: 2 additions & 0 deletions src/colour_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include "dialogs.h"

#include <boost/version.hpp>

#if BOOST_VERSION >= 106900
#include <boost/gil.hpp>
#else
Expand Down
1 change: 1 addition & 0 deletions src/command/command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <boost/algorithm/string/join.hpp>
#include "include/aegisub/hotkey.h"

#include <map>
#include <wx/intl.h>

namespace cmd {
Expand Down
3 changes: 2 additions & 1 deletion src/command/command.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#pragma once

#include <map>
#include <string>
#include <vector>

Expand All @@ -28,6 +27,8 @@

#include <libaegisub/exception.h>

#include <memory>

namespace agi { struct Context; }

#define CMD_NAME(a) const char* name() const override { return a; }
Expand Down
1 change: 1 addition & 0 deletions src/dialog_align.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include <wx/dialog.h>
#include <wx/sizer.h>
#include <wx/textctrl.h>
#include <boost/version.hpp>
#if BOOST_VERSION >= 106900
#include <boost/gil.hpp>
#else
Expand Down
1 change: 1 addition & 0 deletions src/dialog_colorpicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

#include <memory>
#include <vector>
#include <algorithm>

#include <wx/bitmap.h>
#include <wx/button.h>
Expand Down
1 change: 1 addition & 0 deletions src/dialog_dummy_video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "options.h"
#include "validators.h"
#include "video_provider_dummy.h"
#include "wx/valtext.h"

#include <libaegisub/ass/time.h>
#include <libaegisub/color.h>
Expand Down
2 changes: 2 additions & 0 deletions src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@

#include "aegisublocale.h"

#include <vector>

#ifndef wxUSE_EXCEPTIONS
#error wxWidgets is compiled without exceptions support. Aegisub requires exceptions support in wxWidgets to run safely.
#endif
Expand Down
1 change: 1 addition & 0 deletions src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include <cstdint>
#include <string>

#include <wx/menu.h>
#include <wx/bitmap.h>
#include <wx/string.h>

Expand Down
1 change: 1 addition & 0 deletions src/video_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "video_frame.h"

#include <boost/version.hpp>
#if BOOST_VERSION >= 106900
#include <boost/gil.hpp>
#else
Expand Down
2 changes: 2 additions & 0 deletions tests/tests/character_count.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include <libaegisub/character_count.h>

#include <algorithm>

TEST(lagi_character_count, basic) {
EXPECT_EQ(5, agi::CharacterCount("hello", agi::IGNORE_NONE));
}
Expand Down

0 comments on commit 00cf496

Please sign in to comment.