From: James M. <jid...@sa...> - 2002-07-16 02:15:27
|
Here's a copy. WRITTEN by CASPER Correction, that is not enough to fix the bug. I used modified mingw headers. I can't commit this fix because it will break compillation when using unpatched mingw headers, but you can do this to get it to compile: * Apply the following patch to the reactos/ntoskrnl/ directory: Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /CVS/ReactOS/reactos/ntoskrnl/Makefile,v retrieving revision 1.70 diff -u -r1.70 Makefile --- Makefile 10 Jun 2002 08:45:40 -0000 1.70 +++ Makefile 16 Jun 2002 17:05:26 -0000 @@ -34,10 +34,10 @@ =20 ifeq ($(strip $(SDK_PATH_INC)),) ASFLAGS +=3D -I./include -CFLAGS +=3D -I./include -D__NTOSKRNL__ $(CFLAGS_DBG) -Wall -Werror +CFLAGS +=3D -I./include -D__NTOSKRNL__ -D__MINGW_IMPORT=3Dextern $(CFLAG= S_DBG)=20 -Wall -Werror else ASFLAGS +=3D -I./include -I$(SDK_PATH_INC) -CFLAGS +=3D -I./include -I$(SDK_PATH_INC) -D__NTOSKRNL__ $(CFLAGS_DBG) -= Wall=20 -Werror +CFLAGS +=3D -I./include -I$(SDK_PATH_INC) -D__MINGW_IMPORT=3Dextern=20 -D__NTOSKRNL__ $(CFLAGS_DBG) -Wall -Werror endif =20 # * Apply the following patch to your mingw/include directory: Index: include/_mingw.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvsroot/mingw/runtime/include/_mingw.h,v retrieving revision 1.7 diff -b -u -r1.7 _mingw.h --- include/_mingw.h 14 Jun 2002 15:12:54 -0000 1.7 +++ include/_mingw.h 16 Jun 2002 17:02:48 -0000 @@ -44,13 +44,17 @@ style declarations. */ =20 #ifndef __GNUC__ +# ifndef __MINGW_IMPORT # define __MINGW_IMPORT __declspec(dllimport) +# endif # define __DECLSPEC_SUPPORTED #else /* __GNUC__ */ # ifdef __declspec +# ifndef __MINGW_IMPORT /* Note the extern. This is needed to work around GCC's limitations in handling dllimport attribute. */ # define __MINGW_IMPORT extern __attribute__((dllimport)) +# endif # define __DECLSPEC_SUPPORTED # else # undef __DECLSPEC_SUPPORTED |