Skip to content

Commit

Permalink
Compile on MacOS by adding ARM64 to Xdr.cc and removing binary_function
Browse files Browse the repository at this point in the history
(binary_function has been removed in C++17)
  • Loading branch information
jmcarcell committed Apr 1, 2024
1 parent bf82d04 commit a5bb863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions source/src/DBInterface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

#include <memory>
#include <algorithm>
#include <functional>
#include <stdlib.h>
#include <iomanip>

Expand All @@ -39,7 +38,7 @@
namespace lccd {

/** Helper class to sort collections of conditions data w.r.t. to their validity time intervall */
struct less_wrt_validity : public binary_function<lcio::LCCollection*,lcio::LCCollection*,bool>{
struct less_wrt_validity {
bool operator() (lcio::LCCollection* c0, lcio::LCCollection* c1) const {
return ( std::atoll( c0->parameters().getStringVal(lccd::DBSINCE).c_str() ) <
std::atoll( c1->parameters().getStringVal(lccd::DBSINCE).c_str() ) ) ;
Expand Down
4 changes: 1 addition & 3 deletions source/src/Xdr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

#include"lccd/Xdr.hh"

#include <iostream>

namespace lccd{

//------------------------------------------
// Code copied from SIO_functions.
//------------------------------------------

#if defined(__alpha__) || defined(__i386__) || defined(_M_ALPHA) || defined(_M_IX86) || defined(__x86_64__)
#if defined(__alpha__) || defined(__i386__) || defined(_M_ALPHA) || defined(_M_IX86) || defined(__x86_64__) || defined(__aarch64__)
#define XDR_LITTLE_ENDIAN
#endif

Expand Down

0 comments on commit a5bb863

Please sign in to comment.