include/comphelper/errcode.hxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 113e064117b2632974a696b950634229d70c5b96
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Fri Oct 13 11:58:02 2023 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Oct 13 13:29:10 2023 +0200

    Make sure __cpp_lib_source_location is consistently defined
    
    ...following up on 9c5f597fc80a8a910c1f898556ef2a3226dfe40c "use
    std::source_location instead of std::experimental::source_location".
    __cpp_lib_source_location is defined in both <source_location> (but which 
we can
    apparently not rely on here, trying to figure out whether to #include it in 
the
    first place) and <version>, so lets hope that all our toolchains support 
C++20
    <version> by now and #include that.
    
    Change-Id: I7ba41cae60dbbf6b3ec275edb06af66f184daf93
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157910
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/include/comphelper/errcode.hxx b/include/comphelper/errcode.hxx
index 567400f101f8..662ec139164b 100644
--- a/include/comphelper/errcode.hxx
+++ b/include/comphelper/errcode.hxx
@@ -23,6 +23,7 @@
 #include <ostream>
 #include <o3tl/typed_flags_set.hxx>
 #include <optional>
+#include <version>
 
 #if defined(DBG_UTIL)
 #if defined(__cpp_lib_source_location) && __cpp_lib_source_location >= 201907

Reply via email to