oaknut: feature_detection_freebsd: Warn about incompatibility with earlier FreeBSD versions

This commit is contained in:
Merry 2023-10-29 15:41:12 +00:00 committed by merry
parent 86e5386e27
commit dbeec268b7

View file

@ -7,6 +7,7 @@
#include <optional>
#include <sys/auxv.h>
#include <sys/param.h>
#include "oaknut/feature_detection/cpu_feature.hpp"
#include "oaknut/feature_detection/feature_detection_hwcaps.hpp"
@ -20,6 +21,10 @@
# define AT_HWCAP2 26
#endif
#if __FreeBSD_version < 1300114
# error "Incompatible ABI change (incorrect HWCAP definitions on earlier FreeBSD versions)"
#endif
namespace oaknut {
namespace detail {