Author: dgorbachev
Date: Sun Jan 24 03:07:40 2010
New Revision: 45229
URL:
http://svn.reactos.org/svn/reactos?rev=45229&view=rev
Log:
Use for GCC before 4.5, too...
Modified:
trunk/reactos/ntoskrnl/include/internal/trap_x.h
Modified: trunk/reactos/ntoskrnl/include/internal/trap_x.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/trap_x.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/trap_x.h [iso-8859-1] Sun Jan 24 03:07:40
2010
@@ -9,8 +9,11 @@
#ifdef __GNUC__
#if __GNUC__ * 100 + __GNUC_MINOR__ >= 405
#define UNREACHABLE __builtin_unreachable()
+#else
+DECLSPEC_NORETURN void exit(int s) {exit(s);}
+#define UNREACHABLE exit(0)
#endif
-#else
+#else /* not __GNUC__ */
DECLSPEC_NORETURN void exit(int s) {exit(s);}
#define UNREACHABLE exit(0)
#endif