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 4313b7b
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 0 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/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
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 4313b7b

Please sign in to comment.