XMSS Library
compat.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2022 Fox Crypto B.V.
3  * SPDX-License-Identifier: MIT
4  */
5 
20 #pragma once
21 
22 #ifndef XMSS_COMPAT_H_INCLUDED
24 #define XMSS_COMPAT_H_INCLUDED
25 
26 #include "xmss_config.h"
27 
39 #if (__STDC_VERSION__ >= 201112L) || XMSS_CAN_USE_STATIC_ASSERT || defined(DOXYGEN)
40 # define XMSS_STATIC_ASSERT(cond, msg) _Static_assert(cond, msg)
41 #elif XMSS_CAN_USE_EXTENSION_STATIC_ASSERT
42 # define XMSS_STATIC_ASSERT(cond, msg) __extension__ _Static_assert(cond, msg)
43 #else
44 # define XMSS_STATIC_ASSERT(cond, msg) struct xmss_static_assert_unsupported
45 #endif
46 
47 #endif /* !XMSS_COMPAT_H_INCLUDED */
The configurable CMake options that affect the public API.