mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Remove temporary SDL fallthrough
We don't need a temporary fallback if we just start using SDL 2.0.18 or later.
This commit is contained in:
parent
aa343bc334
commit
e40f54f06b
2 changed files with 1 additions and 23 deletions
|
@ -1,6 +1,7 @@
|
|||
#define GRAPHICS_DEFINITION
|
||||
#include "Graphics.h"
|
||||
|
||||
#include <SDL.h>
|
||||
#include <utf8/unchecked.h>
|
||||
|
||||
#include "Constants.h"
|
||||
|
@ -12,7 +13,6 @@
|
|||
#include "Map.h"
|
||||
#include "Music.h"
|
||||
#include "Screen.h"
|
||||
#include "TempSDLFallthrough.h"
|
||||
#include "UtilityClass.h"
|
||||
#include "Vlogging.h"
|
||||
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
#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 */
|
Loading…
Reference in a new issue