- Fix included headers in GDI for PSDK compatibility
- Fix some incorrect definitions.
- Remove more quintuplicated header nonsense...
Deleted: trunk/reactos/include/win32k/debug.h
Deleted: trunk/reactos/include/win32k/debug1.h
Modified: trunk/reactos/include/win32k/driver.h
Modified: trunk/reactos/include/win32k/kapi.h
Modified: trunk/reactos/lib/gdi32/include/precomp.h
Modified: trunk/reactos/lib/gdi32/misc/stubs.c
Modified: trunk/reactos/lib/gdi32/misc/wingl.c
_____
Deleted: trunk/reactos/include/win32k/debug.h
--- trunk/reactos/include/win32k/debug.h 2005-07-27 20:09:19 UTC
(rev 16814)
+++ trunk/reactos/include/win32k/debug.h 2005-07-27 20:09:46 UTC
(rev 16815)
@@ -1,12 +0,0 @@
-
-#ifndef H_WIN32K_DEBUG
-#define H_WIN32K_DEBUG
-
-#ifdef CHECKED_BUILD
-#define FIXME(S) DbgPrint ("win32k: FIXME at: File:%s line:%d
reason:%s", __FILE__, __LINE__, S)
-#else
-#define FIXME(S)
-#endif
-
-#endif
-
_____
Deleted: trunk/reactos/include/win32k/debug1.h
--- trunk/reactos/include/win32k/debug1.h 2005-07-27 20:09:19 UTC
(rev 16814)
+++ trunk/reactos/include/win32k/debug1.h 2005-07-27 20:09:46 UTC
(rev 16815)
@@ -1,72 +0,0 @@
-/*
- * COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS kernel
- * FILE: include/internal/debug.h
- * PURPOSE: Useful debugging macros
- * PROGRAMMER: David Welch (welch(a)mcmail.com)
- * UPDATE HISTORY:
- * 28/05/98: Created
- */
-
-/*
- * NOTE: Define NDEBUG before including this header to disable
debugging
- * macros
- */
-
-#ifndef __INTERNAL_DEBUG
-#define __INTERNAL_DEBUG
-
-#define UNIMPLEMENTED do {DbgPrint("%s at %s:%d is unimplemented, have
a nice day\n",__FUNCTION__,__FILE__,__LINE__); for(;;); } while(0);
-
-/* FIXME: should probably remove this later */
-#if !defined(CHECKED) && !defined(NDEBUG)
-#define CHECKED
-#endif
-
-#ifndef NASSERT
-#ifndef assert
-#define assert(x) if (!(x)) {DbgPrint("Assertion "#x" failed at
%s:%d\n", __FILE__,__LINE__); KeBugCheck(0); }
-#endif
-#ifndef ASSERT
-#define ASSERT(x) assert(x)
-#endif
-#else
-#ifndef assert
-#define assert(x)
-#endif
-#ifndef ASSERT
-#define ASSERT(x)
-#endif
-#endif
-
-#ifdef DBG
-#define DPRINT1 DbgPrint("(%s:%d) ",__FILE__,__LINE__), DbgPrint
-#define CHECKPOINT1 DbgPrint("%s:%d\n",__FILE__,__LINE__);
-#else
-#define DPRINT1(args...)
-#define CHECKPOINT1(args...)
-#endif
-
-#ifdef __NTOSKRNL__
-#define DPRINT_CHECKS
-#else
-#define DPRINT_CHECKS
-#endif
-
-#ifndef NDEBUG
-#define DPRINT DbgPrint("(%s:%d) ",__FILE__,__LINE__), DbgPrint
-#define CHECKPOINT DbgPrint("%s:%d\n",__FILE__,__LINE__);
-#else
-#define DPRINT(args...)
-#define CHECKPOINT
-#endif /* NDEBUG */
-
-/*
- * FUNCTION: Assert a maximum value for the current irql
- * ARGUMENTS:
- * x = Maximum irql
- */
-#define ASSERT_IRQL(x) assert(KeGetCurrentIrql()<=(x))
-#define assert_irql(x) assert(KeGetCurrentIrql()<=(x))
-
-#endif /* __INTERNAL_DEBUG */
_____
Modified: trunk/reactos/include/win32k/driver.h
--- trunk/reactos/include/win32k/driver.h 2005-07-27 20:09:19 UTC
(rev 16814)
+++ trunk/reactos/include/win32k/driver.h 2005-07-27 20:09:46 UTC
(rev 16815)
@@ -2,7 +2,7 @@
#ifndef __WIN32K_DRIVER_H
#define __WIN32K_DRIVER_H
-#include <ddk/winddi.h>
+#include <winddi.h>
typedef BOOL (STDCALL *PGD_ENABLEDRIVER)(ULONG, ULONG, PDRVENABLEDATA);
typedef DHPDEV (STDCALL *PGD_ENABLEPDEV)(DEVMODEW *,
_____
Modified: trunk/reactos/include/win32k/kapi.h
--- trunk/reactos/include/win32k/kapi.h 2005-07-27 20:09:19 UTC (rev
16814)
+++ trunk/reactos/include/win32k/kapi.h 2005-07-27 20:09:46 UTC (rev
16815)
@@ -16,7 +16,6 @@
#include <win32k/dc.h>
#include <win32k/coord.h>
#include <win32k/bitmaps.h>
-#include <win32k/debug.h>
#include <win32k/fillshap.h>
#include <win32k/font.h>
#include <win32k/icm.h>
_____
Modified: trunk/reactos/lib/gdi32/include/precomp.h
--- trunk/reactos/lib/gdi32/include/precomp.h 2005-07-27 20:09:19 UTC
(rev 16814)
+++ trunk/reactos/lib/gdi32/include/precomp.h 2005-07-27 20:09:46 UTC
(rev 16815)
@@ -9,12 +9,14 @@
/* INCLUDES
******************************************************************/
/* SDK/DDK/NDK Headers. */
+#define NTOS_MODE_USER
+#define __GDI32__
#include <windows.h>
#include <ddraw.h>
-#include <ddk/winddi.h>
-#include <ddk/prntfont.h>
+#include <ddrawi.h>
+#include <winddi.h>
+#include <prntfont.h>
#include <ddrawgdi.h>
-#define NTOS_MODE_USER
#include <ndk/ntndk.h>
/* Win32K External Headers */
_____
Modified: trunk/reactos/lib/gdi32/misc/stubs.c
--- trunk/reactos/lib/gdi32/misc/stubs.c 2005-07-27 20:09:19 UTC
(rev 16814)
+++ trunk/reactos/lib/gdi32/misc/stubs.c 2005-07-27 20:09:46 UTC
(rev 16815)
@@ -1200,7 +1200,7 @@
/*
* @unimplemented
*/
-HANDLE
+HCOLORSPACE
STDCALL
GetColorSpace(
HDC hDc
@@ -1215,7 +1215,7 @@
/*
* @unimplemented
*/
-BOOL
+HCOLORSPACE
STDCALL
SetColorSpace(
HDC a0,
@@ -3950,7 +3950,7 @@
/*
* @unimplemented
*/
-BOOL STDCALL DdGetDC(
+HDC STDCALL DdGetDC(
LPDDRAWI_DDRAWSURFACE_LCL pSurfaceLocal,
LPPALETTEENTRY pColorTable
)
_____
Modified: trunk/reactos/lib/gdi32/misc/wingl.c
--- trunk/reactos/lib/gdi32/misc/wingl.c 2005-07-27 20:09:19 UTC
(rev 16814)
+++ trunk/reactos/lib/gdi32/misc/wingl.c 2005-07-27 20:09:46 UTC
(rev 16815)
@@ -24,7 +24,7 @@
#include "precomp.h"
#define NDEBUG
-#include <win32k/debug1.h>
+#include <debug.h>
Show replies by date