Skip to content

Commit

Permalink
fix building with GCC 14
Browse files Browse the repository at this point in the history
Implicit function declarations are now an error, so we need to include
all those missing headers: https://gcc.gnu.org/gcc-14/porting_to.html
  • Loading branch information
stefantalpalaru committed Dec 20, 2024
1 parent 94aff4a commit 33cdcfb
Show file tree
Hide file tree
Showing 20 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions libaegisub/ass/uuencode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <libaegisub/ass/uuencode.h>

#include <algorithm>
#include <cstring>

// Despite being called uuencoding by ass_specs.doc, the format is actually
// somewhat different from real uuencoding. Each 3-byte chunk is split into 4
Expand Down
1 change: 1 addition & 0 deletions libaegisub/audio/provider_dummy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "libaegisub/fs.h"

#include <random>
#include <cstring>

/*
* scheme ::= "dummy-audio" ":" signal-specifier "?" signal-parameters
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 @@ -19,6 +19,7 @@
#include "libaegisub/ass/dialogue_parser.h"

#include <algorithm>
#include <cstring>

namespace {
struct proto_lit {
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 {
std::string_view mru_names[] = {
"Audio",
Expand Down
1 change: 1 addition & 0 deletions libaegisub/common/option.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <boost/interprocess/streams/bufferstream.hpp>
#include <cassert>
#include <memory>
#include <algorithm>

namespace {
using namespace agi;
Expand Down
1 change: 1 addition & 0 deletions libaegisub/common/thesaurus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "libaegisub/split.h"

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

namespace agi {

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 @@ -17,6 +17,7 @@
#include <libaegisub/type_name.h>

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

namespace agi::lua {
Expand Down
2 changes: 2 additions & 0 deletions libaegisub/unix/path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
//
// Aegisub Project http://www.aegisub.org/

#include "../acconf.h"

#include <libaegisub/path.h>

#include <libaegisub/exception.h>
Expand Down
2 changes: 2 additions & 0 deletions src/aegisublocale.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
/// @ingroup utility
///

#include "acconf.h"

#include "aegisublocale.h"

#include "compat.h"
Expand Down
1 change: 1 addition & 0 deletions src/ass_style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

#include <boost/lexical_cast.hpp>
#include <wx/intl.h>
#include <algorithm>

AssStyle::AssStyle() {
std::fill(Margin.begin(), Margin.end(), 10);
Expand Down
1 change: 1 addition & 0 deletions src/audio_timing_dialogue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <libaegisub/ass/time.h>

#include <boost/range/algorithm.hpp>
#include <list>
#include <wx/pen.h>

namespace {
Expand Down
2 changes: 2 additions & 0 deletions src/base_grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <string>
#include <vector>
#include <wx/window.h>
#include <wx/scrolbar.h>
#include <wx/brush.h>

namespace agi {
struct Context;
Expand Down
1 change: 1 addition & 0 deletions src/command/command.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <map>
#include <string>
#include <vector>
#include <memory>

#include <wx/bitmap.h>
#include <wx/intl.h>
Expand Down
1 change: 1 addition & 0 deletions src/dialog_colorpicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@

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

#include <wx/bitmap.h>
#include <wx/button.h>
Expand Down
1 change: 1 addition & 0 deletions src/frame_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
#include <wx/sizer.h>
#include <wx/statline.h>
#include <wx/sysopt.h>
#include <wx/toolbar.h>

enum {
ID_APP_TIMER_STATUSCLEAR = 12002
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/preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

#include <wx/checkbox.h>
#include <wx/combobox.h>
#include <wx/dc.h>
#include <wx/event.h>
#include <wx/listctrl.h>
#include <wx/msgdlg.h>
Expand Down
1 change: 1 addition & 0 deletions src/spline_curve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include "utils.h"

#include <limits>
#include <algorithm>

SplineCurve::SplineCurve(Vector2D p1) : p1(p1), type(POINT) { }
SplineCurve::SplineCurve(Vector2D p1, Vector2D p2) : p1(p1), p2(p2), type(LINE) { }
Expand Down
1 change: 1 addition & 0 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#ifdef __UNIX__
#include <unistd.h>
#endif
#include <algorithm>
#include <map>
#include <unicode/locid.h>
#include <unicode/unistr.h>
Expand Down

0 comments on commit 33cdcfb

Please sign in to comment.