[ros-diffs] [dgorbachev] 45228: Trying r45222 hack again...

dgorbachev at svn.reactos.org dgorbachev at svn.reactos.org
Sun Jan 24 02:58:21 CET 2010


Author: dgorbachev
Date: Sun Jan 24 02:58:20 2010
New Revision: 45228

URL: http://svn.reactos.org/svn/reactos?rev=45228&view=rev
Log:
Trying r45222 hack again...

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/trap_x.h?rev=45228&r1=45227&r2=45228&view=diff
==============================================================================
--- 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 02:58:20 2010
@@ -9,11 +9,10 @@
 #ifdef __GNUC__
 #if __GNUC__ * 100 + __GNUC_MINOR__ >= 405
 #define UNREACHABLE __builtin_unreachable()
+#endif
 #else
-#define UNREACHABLE __builtin_trap()
-#endif
-#else /* not __GNUC__ */
-#define UNREACHABLE
+DECLSPEC_NORETURN void exit(int s) {exit(s);}
+#define UNREACHABLE exit(0)
 #endif
 
 //




More information about the Ros-diffs mailing list