From c812c92d1a1835f0bda783e709481188c8d92225 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 15 Mar 2014 19:34:59 -0700 Subject: Clean up header organization --- src/compat/attr.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/compat/attr.hpp (limited to 'src/compat/attr.hpp') diff --git a/src/compat/attr.hpp b/src/compat/attr.hpp new file mode 100644 index 0000000..ca9a7a2 --- /dev/null +++ b/src/compat/attr.hpp @@ -0,0 +1,13 @@ +#ifndef TMWA_COMPAT_ATTR_HPP +#define TMWA_COMPAT_ATTR_HPP + +# include "../sanity.hpp" + + +# ifdef __clang__ +# define FALLTHROUGH [[clang::fallthrough]] +# else +# define FALLTHROUGH /* fallthrough */ +# endif + +#endif // TMWA_COMPAT_ATTR_HPP -- cgit v1.2.3-60-g2f50