1*2ccfa855SEd Maste /* 2*2ccfa855SEd Maste * Copyright (c) 2022 Yubico AB. All rights reserved. 3*2ccfa855SEd Maste * Use of this source code is governed by a BSD-style 4*2ccfa855SEd Maste * license that can be found in the LICENSE file. 5*2ccfa855SEd Maste * SPDX-License-Identifier: BSD-2-Clause 6*2ccfa855SEd Maste */ 7*2ccfa855SEd Maste 8*2ccfa855SEd Maste #ifndef _FALLTHROUGH_H 9*2ccfa855SEd Maste #define _FALLTHROUGH_H 10*2ccfa855SEd Maste 11*2ccfa855SEd Maste #if defined(__GNUC__) 12*2ccfa855SEd Maste #if __has_attribute(fallthrough) 13*2ccfa855SEd Maste #define FALLTHROUGH __attribute__((fallthrough)); 14*2ccfa855SEd Maste #endif 15*2ccfa855SEd Maste #endif /* __GNUC__ */ 16*2ccfa855SEd Maste 17*2ccfa855SEd Maste #ifndef FALLTHROUGH 18*2ccfa855SEd Maste #define FALLTHROUGH /* FALLTHROUGH */ 19*2ccfa855SEd Maste #endif 20*2ccfa855SEd Maste 21*2ccfa855SEd Maste #endif /* !_FALLTHROUGH_H */ 22