Commit in reactos on MAIN
include/pseh/framebased.h+18-81.6 -> 1.7
tools/helper.mk+3-31.67 -> 1.68
+21-11
2 modified files
Attempt to fix PSEH compilation for kernel-mode targets. Arty please test this

reactos/include/pseh
framebased.h 1.6 -> 1.7
diff -u -r1.6 -r1.7
--- framebased.h	4 Jun 2004 00:49:40 -0000	1.6
+++ framebased.h	18 Jun 2004 22:33:06 -0000	1.7
@@ -24,19 +24,29 @@
 #define KJK_PSEH_FRAMEBASED_H_
 
 #include <pseh/framebased/internal.h>
-#include <excpt.h>
 
+/* Safeguards against broken SDK/CRT headers */
+#ifndef _SEH_NO_SYSTEM_HEADERS
+# include <excpt.h>
+#endif
+
+#ifndef offsetof
+# include <stddef.h>
+#endif
+
+/*
+ Fall back to non-optimal, non-native NLG implementation for environments
+ without their own (e.g., currently, kernel-mode ReactOS/Windows)
+*/
 #ifdef _SEH_NO_NATIVE_NLG
-#include <pseh/setjmp.h>
-#define longjmp _SEHLongJmp
-#define setjmp _SEHSetJmp
-#define jmp_buf _SEHJmpBuf_t
+# include <pseh/setjmp.h>
+# define longjmp _SEHLongJmp
+# define setjmp _SEHSetJmp
+# define jmp_buf _SEHJmpBuf_t
 #else
-#include <setjmp.h>
+# include <setjmp.h>
 #endif
 
-#include <stddef.h>
-
 typedef struct __SEHFrame
 {
  _SEHPortableFrame_t SEH_Header;

reactos/tools
helper.mk 1.67 -> 1.68
diff -u -r1.67 -r1.68
--- helper.mk	5 Jun 2004 09:47:35 -0000	1.67
+++ helper.mk	18 Jun 2004 22:33:06 -0000	1.68
@@ -1,4 +1,4 @@
-# $Id: helper.mk,v 1.67 2004/06/05 09:47:35 hbirr Exp $
+# $Id: helper.mk,v 1.68 2004/06/18 22:33:06 hyperion Exp $
 #
 # Helper makefile for ReactOS modules
 # Variables this makefile accepts:
@@ -583,8 +583,8 @@
 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
+  MK_CFLAGS += -D_SEH_NO_NATIVE_NLG -D_SEH_NO_SYSTEM_HEADERS
+  MK_CPPFLAGS += -D_SEH_NO_NATIVE_NLG -D_SEH_NO_SYSTEM_HEADERS
 endif
 
 
CVSspam 0.2.8