Skip to content

Commit c05f333

Browse files
committed
[DCS] Make DataPointValue streamable and macOS compatible
1 parent 24fe1ca commit c05f333

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Detectors/DCS/include/DetectorsDCS/DataPointValue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ struct alignas(64) DataPointValue final {
459459
*/
460460
inline std::unique_ptr<std::string> get_timestamp() const noexcept
461461
{
462-
#ifdef __linux__
462+
#if defined(__linux__) || defined(__APPLE__)
463463
// time_t should be uint64_t (compatible) on 64-bit Linux platforms:
464464
char buffer[17];
465465
std::time_t ts((uint64_t)sec);

Detectors/DCS/src/DetectorsDCSLinkDef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#pragma link off all functions;
1616

1717
#pragma link C++ struct o2::dcs::DataPointCompositeObject + ;
18-
#pragma link C++ class o2::dcs::DataPointIdentifier + ;
18+
#pragma link C++ struct o2::dcs::DataPointIdentifier + ;
1919
#pragma link C++ struct o2::dcs::DataPointValue + ;
2020
#pragma link C++ class o2::dcs::DCSProcessor + ;
2121
#pragma link C++ class std::unordered_map < o2::dcs::DataPointIdentifier, o2::dcs::DataPointValue> + ;

0 commit comments

Comments
 (0)