Fix build with gcc 4.1.2
[reactos.git] / reactos / ntoskrnl / include / ntoskrnl.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Kernel
4 * FILE: ntoskrnl/include/ntoskrnl.h
5 * PURPOSE: Main Kernel Header
6 * PROGRAMMER: Alex Ionescu (alex@relsoft.net)
7 */
8
9 /* INCLUDES ******************************************************************/
10
11 /* Version Data */
12 #include <ntverp.h>
13 #define _WIN32_WINNT _WIN32_WINNT_WS03
14 #define NTDDI_VERSION NTDDI_WS03SP1
15
16 /* DDK/IFS/NDK Headers */
17 #define NTKERNELAPI
18 #define NOEXTAPI
19 #include <ntifs.h>
20 #undef _KPROCESS
21 #undef _EPROCESS
22 #include <wdmguid.h>
23 #include <arc/arc.h>
24 #include <ntndk.h>
25 #undef TEXT
26 #define TEXT(s) L##s
27 #include <regstr.h>
28
29 /* FIXME: Temporary until CC Ros is gone */
30 #include <ccros.h>
31 #include <rosldr.h>
32
33 /* Disk Dump Driver Header */
34 #include <diskdump/diskdump.h>
35
36 /* C Headers */
37 #include <stdio.h>
38 #include <ctype.h>
39 #include <malloc.h>
40 #include <wchar.h>
41
42 /* SEH support with PSEH */
43 #include <pseh/pseh.h>
44
45 /* ReactOS Headers */
46 #include <reactos/buildno.h>
47 #include <reactos/bugcodes.h>
48 #define ExRaiseStatus RtlRaiseStatus
49 #include <reactos/probe.h>
50
51 /* SetupLDR Support */
52 #include <arc/setupblk.h>
53
54 /* KD Support */
55 #include <windbgkd.h>
56 #include <wdbgexts.h>
57 #include <kddll.h>
58
59 /* PNP GUIDs */
60 #include <umpnpmgr/sysguid.h>
61
62 /* Helper Header */
63 #include <reactos/helper.h>
64
65 /* Internal Headers */
66 #include "internal/ntoskrnl.h"
67 #include "config.h"
68
69 //
70 // Define the internal versions of external and public global data
71 //
72 #define IoFileObjectType _IoFileObjectType
73 #define PsThreadType _PsThreadType
74 #define PsProcessType _PsProcessType
75 #define ExEventObjectType _ExEventObjectType
76 #define ExSemaphoreObjectType _ExSemaphoreObjectType
77 #define KdDebuggerEnabled _KdDebuggerEnabled
78 #define KdDebuggerNotPresent _KdDebuggerNotPresent
79 #define FsRtlLegalAnsiCharacterArray _FsRtlLegalAnsiCharacterArray
80 #undef LEGAL_ANSI_CHARACTER_ARRAY
81 #undef NLS_MB_CODE_PAGE_TAG
82 #undef NLS_OEM_LEAD_BYTE_INFO
83 #define LEGAL_ANSI_CHARACTER_ARRAY FsRtlLegalAnsiCharacterArray
84 #define NLS_MB_CODE_PAGE_TAG NlsMbOemCodePageTag
85 #define NLS_OEM_LEAD_BYTE_INFO NlsOemLeadByteInfo
86 #undef KD_DEBUGGER_ENABLED
87 #undef KD_DEBUGGER_NOT_PRESENT
88 #define KD_DEBUGGER_ENABLED KdDebuggerEnabled
89 #define KD_DEBUGGER_NOT_PRESENT KdDebuggerNotPresent
90 #define HalDispatchTable _HalDispatchTable
91 #undef HALDISPATCH
92 #define HALDISPATCH (&HalDispatchTable)