Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / build / feature / test-libopencsd.c
blob4cfcef9da3e434955396dc5ccd8ccdfd1e063ed7
1 // SPDX-License-Identifier: GPL-2.0
2 #include <opencsd/c_api/opencsd_c_api.h>
4 /*
5 * Check OpenCSD library version is sufficient to provide required features
6 */
7 #define OCSD_MIN_VER ((1 << 16) | (2 << 8) | (1))
8 #if !defined(OCSD_VER_NUM) || (OCSD_VER_NUM < OCSD_MIN_VER)
9 #error "OpenCSD >= 1.2.1 is required"
10 #endif
12 int main(void)
14 (void)ocsd_get_version();
15 return 0;