From 723ab7f15a4bdaa7dd26a8a672057cb0c901f36a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 18 Jun 2019 23:04:24 -0700 Subject: Don't inline ifstream destructor --- Alc/helpers.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Alc/helpers.cpp') diff --git a/Alc/helpers.cpp b/Alc/helpers.cpp index 3efa989d..ee0bb2dc 100644 --- a/Alc/helpers.cpp +++ b/Alc/helpers.cpp @@ -424,6 +424,12 @@ ifstream::ifstream(const char *filename, std::ios_base::openmode mode) clear(failbit); } +/* This is only here to ensure the compiler doesn't define an implicit + * destructor, which it tries to automatically inline and subsequently complain + * it can't inline without excessive code growth. + */ +ifstream::~ifstream() { } + } // namespace al const PathNamePair &GetProcBinary() -- cgit v1.2.3