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