Skip to content

Commit

Permalink
Avoid duplicate definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
ellert authored and amadio committed Dec 10, 2023
1 parent e6c3b16 commit 6b14775
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/XrdOssCsi/XrdOssCsiTagstoreFile.hh
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,11 @@
#include "XrdOss/XrdOss.hh"
#include "XrdOssCsiTagstore.hh"
#include "XrdOuc/XrdOucCRC.hh"
#include "XrdSys/XrdSysPlatform.hh"

#include <memory>
#include <mutex>

#if defined(__APPLE__)
// Make sure that byte swap functions are not already defined.
#if !defined(bswap_16)
// Mac OS X / Darwin features
#include <libkern/OSByteOrder.h>
#define bswap_16(x) OSSwapInt16(x)
#define bswap_32(x) OSSwapInt32(x)
#define bswap_64(x) OSSwapInt64(x)
#endif
#else
#include <byteswap.h>
#endif

class XrdOssCsiTagstoreFile : public XrdOssCsiTagstore
{
public:
Expand Down

0 comments on commit 6b14775

Please sign in to comment.