Files
86Box/src/include/86box/plat_fallthrough.h

31 lines
849 B
C
Raw Normal View History

2023-07-26 10:57:01 -04:00
/*
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
*
* This file is part of the 86Box distribution.
*
* Define the various platform support functions.
*
*
*
2023-07-26 13:14:21 -04:00
* Authors: Jasmine Iwanek, <jasmine@iwanek.co.uk>
2023-07-26 10:57:01 -04:00
*
* Copyright 2023 Jasmine Iwanek
*/
#ifndef EMU_PLAT_FALLTHROUGH_H
#define EMU_PLAT_FALLTHROUGH_H
2023-08-09 19:44:56 -04:00
#if __has_attribute(__fallthrough__)
# define fallthrough __attribute__((__fallthrough__))
#else
# if __has_attribute(fallthrough)
# define fallthrough __attribute__((fallthrough))
# endif
# define fallthrough do {} while (0) /* fallthrough */
2023-07-26 10:57:01 -04:00
#endif
#endif /*EMU_PLAT_FALLTHROUGH_H*/