Corrected a stupid mistake

Modified the build system to make kernel-mode components use the SEH library's built-in setjmp/longjmp

svn path=/trunk/; revision=9599
This commit is contained in:
KJK::Hyperion 2004-06-03 03:09:01 +00:00
parent ce86f5b576
commit cb341561af
2 changed files with 6 additions and 4 deletions

View file

@ -27,13 +27,13 @@
#include <excpt.h>
#ifdef _SEH_NO_NATIVE_NLG
#include <setjmp.h>
#include <stddef.h>
#else
#include <pseh/setjmp.h>
#define longjmp _SEHLongJmp
#define setjmp _SEHSetJmp
#define jmp_buf _SEHJmpBuf_t
#else
#include <setjmp.h>
#include <stddef.h>
#endif
typedef struct __SEHFrame

View file

@ -1,4 +1,4 @@
# $Id: helper.mk,v 1.65 2004/06/02 18:24:09 hyperion Exp $
# $Id: helper.mk,v 1.66 2004/06/03 03:09:01 hyperion Exp $
#
# Helper makefile for ReactOS modules
# Variables this makefile accepts:
@ -583,6 +583,8 @@ endif
ifeq ($(MK_MODE),kernel)
MK_DEFBASE := 0x10000
MK_LIBS := $(addprefix $(DDK_PATH_LIB)/, $(TARGET_DDKLIBS) $(MK_DDKLIBS))
MK_CFLAGS += -D_SEH_NO_NATIVE_NLG
MK_CPPFLAGS += -D_SEH_NO_NATIVE_NLG
endif