commit 8d2e849a1b78fee6258f654f0a2fc2c48ef9c80a
parent ffb754cad68b2ec33c6a947bd1bb8fbe1e76124d
Author: Hans Petter Selasky <hps@selasky.org>
Date: Thu, 6 Oct 2016 18:54:10 +0200
Build fix for FreeBSD.
major() and minor() are defined as macros by sys/types.h
and needs to be undefined to build Zynaddsubfx under
FreeBSD.
Signed-off-by: Hans Petter Selasky <hps@selasky.org>
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/zyn-version.h.in b/src/zyn-version.h.in
@@ -17,6 +17,14 @@
#include <iosfwd>
+#ifdef major
+#undef major
+#endif
+
+#ifdef minor
+#undef minor
+#endif
+
//! class containing a zynaddsubfx version
class version_type
{