move undef macros into Compat.h

Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
This commit is contained in:
Lucca Jiménez Könings
2024-01-19 14:09:56 +01:00
committed by Lion
parent 6ca4acbbf8
commit 9948f2412d
2 changed files with 3 additions and 6 deletions

View File

@@ -291,12 +291,6 @@ TEST_CASE("RegisterThread") {
CHECK(threadNameMap.at(std::this_thread::get_id()) == "MyThread");
}
// macros below need to be undefined on FreeBSD as to avoid naming collision with system headers
#ifdef BEAMMP_FREEBSD
#undef major
#undef minor
#endif
Version::Version(uint8_t major, uint8_t minor, uint8_t patch)
: major(major)
, minor(minor)