Use for GCC before 4.5, too...

svn path=/trunk/; revision=45229
This commit is contained in:
Dmitry Gorbachev
2010-01-24 02:07:40 +00:00
parent 8e4230d981
commit bb62cd780b
+4 -1
View File
@@ -9,11 +9,14 @@
#ifdef __GNUC__
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 405
#define UNREACHABLE __builtin_unreachable()
#endif
#else
DECLSPEC_NORETURN void exit(int s) {exit(s);}
#define UNREACHABLE exit(0)
#endif
#else /* not __GNUC__ */
DECLSPEC_NORETURN void exit(int s) {exit(s);}
#define UNREACHABLE exit(0)
#endif
//
// Debug Macros