mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-06-28 15:38:30 +02:00
cd15ae0fdc
The SDL_FALLTHROUGH macro has been added to SDL 2.0.18. Until 2.0.18 is released, use it if it's available.
23 lines
510 B
C
23 lines
510 B
C
#ifndef TEMPSDLFALLTHROUGH_H
|
|
#define TEMPSDLFALLTHROUGH_H
|
|
|
|
/* FIXME: Delete this when SDL 2.0.18 releases! */
|
|
|
|
#include <SDL_stdinc.h>
|
|
|
|
#ifndef SDL_FALLTHROUGH
|
|
# ifndef __has_attribute
|
|
# define __has_attribute(x) 0
|
|
# endif
|
|
|
|
# if __has_attribute(__fallthrough__)
|
|
# define VVV_fallthrough __attribute__((__fallthrough__))
|
|
# else
|
|
# define VVV_fallthrough do { } while (false) /* fallthrough */
|
|
# endif
|
|
|
|
# define SDL_FALLTHROUGH VVV_fallthrough
|
|
#endif
|
|
|
|
#endif /* TEMPSDLFALLTHROUGH_H */
|