hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/build/feature/test-libopencsd.c
....@@ -1,6 +1,14 @@
11 // SPDX-License-Identifier: GPL-2.0
22 #include <opencsd/c_api/opencsd_c_api.h>
33
4
+/*
5
+ * Check OpenCSD library version is sufficient to provide required features
6
+ */
7
+#define OCSD_MIN_VER ((0 << 16) | (14 << 8) | (0))
8
+#if !defined(OCSD_VER_NUM) || (OCSD_VER_NUM < OCSD_MIN_VER)
9
+#error "OpenCSD >= 0.14.0 is required"
10
+#endif
11
+
412 int main(void)
513 {
614 (void)ocsd_get_version();