Skip to content

Commit d470f59

Browse files
committed
[macOS] Include <chrono> to fix _FilesystemClock build warning
Fixes the warning: ``` [79/2727] Generating G__Core.cxx, ../lib/Core.pcm In module 'std' imported from input_line_1:1: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/__chrono/time_point.h:33:52: error: definition of '_FilesystemClock' must be imported from module 'std.std_private_chrono_file_clock' before it is required template <class _Clock, class _Duration = typename _Clock::duration> ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/__chrono/time_point.h:33:1: note: in instantiation of default argument for 'time_point<std::filesystem::_FilesystemClock>' required here template <class _Clock, class _Duration = typename _Clock::duration> ^~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/usr/include/c++/v1/__chrono/file_clock.h:49:8: note: definition here is not reachable struct _FilesystemClock { ```
1 parent f2c8663 commit d470f59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/base/inc/TParameter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ inline Int_t TParameter<Bool_t>::Merge(TCollection *in)
191191
//
192192
// In case we are building with -fmodules, we need to forward declare the
193193
// specialization in order to compile the dictionary G__Core.cxx.
194+
#include <chrono> // ensures _FilesystemClock is defined
194195
template <> void TParameter<Long64_t>::Streamer(TBuffer &R__b);
195196
template<> TClass *TParameter<Long64_t>::Class();
196197

0 commit comments

Comments
 (0)