Don't use exit() when compiling for the kernel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30037 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -130,8 +130,13 @@ typedef int32_t Long;
|
|||||||
typedef u_int32_t ULong;
|
typedef u_int32_t ULong;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
# include <stdio.h>
|
# if _KERNEL_MODE
|
||||||
# define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);}
|
# include <KernelExport.h>
|
||||||
|
# define Bug(x) {dprintf("%s\n", x);}
|
||||||
|
# else
|
||||||
|
# include <stdio.h>
|
||||||
|
# define Bug(x) {fprintf(stderr, "%s\n", x); exit(1);}
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user