diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-02 12:24:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-02 12:24:27 +0200 |
commit | 5666053da046b94f8fd7bae0b6e35196347ce8be (patch) | |
tree | 9cb432ad90c7c97e23a81d811c41d41b19cf499c | |
parent | 3da13703991d05ab97639e7db52a92846e68f31a (diff) |
Undefine major/minor macros in standard-version header
-rw-r--r-- | libbutl/standard-version.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libbutl/standard-version.hxx b/libbutl/standard-version.hxx index 22078f5..3a5b2a5 100644 --- a/libbutl/standard-version.hxx +++ b/libbutl/standard-version.hxx @@ -14,6 +14,16 @@ #include <libbutl/optional.hxx> +// FreeBSD defines these macros in its <sys/types.h>. +// +#ifdef major +# undef major +#endif + +#ifdef minor +# undef minor +#endif + namespace butl { // The build2 "standard version" (specific, earliest and stub): |