Mercurial > hg > audiodb
view pointpair.cpp @ 654:828c1c4e25cc
(probably) restore buildability on Cygwin
Only probably because I don't have easy direct access to a Cygwin build
environment yet; sadly, it doesn't install under Wine. I have inspected
the output of gcc -dM -E foo.h for different compiler/OS combinations,
though, and this should now be right.
author | mas01cr |
---|---|
date | Thu, 22 Oct 2009 12:51:04 +0000 |
parents | 9119f2fa3efe |
children |
line wrap: on
line source
extern "C" { #include "audioDB_API.h" } #include "audioDB-internals.h" PointPair::PointPair(uint32_t a, uint32_t b, uint32_t c) : trackID(a), qpos(b), spos(c) { }; bool operator<(const PointPair& a, const PointPair& b) { return ((a.trackID < b.trackID) || ((a.trackID == b.trackID) && ((a.spos < b.spos) || ((a.spos == b.spos) && (a.qpos < b.qpos))))); } bool operator>(const PointPair& a, const PointPair& b) { return ((a.trackID > b.trackID) || ((a.trackID == b.trackID) && ((a.spos > b.spos) || ((a.spos == b.spos) && (a.qpos > b.qpos))))); } bool operator==(const PointPair& a, const PointPair& b) { return ((a.trackID == b.trackID) && (a.qpos == b.qpos) && (a.spos == b.spos)); }