Skip to content

Commit 6f67132

Browse files
committed
[LIB:ARBITER] Addendum to 374f2b4: Fix build.
- No need to use a PCH when compiling a 1-file library. - Add the _NTSYSTEM_ definition. - Since the arbiter.h file is to be included by the users of this library, namely only kernel-mode NT components (incl. NTOS), there is no need to include the standard kernel-mode headers in it. Include these headers instead in the private implementation of the library, arbiter.c.
1 parent 745cb1c commit 6f67132

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11

2-
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/rtl)
2+
add_definitions(-D_NTSYSTEM_)
33

44
list(APPEND SOURCE
5-
arbiter.c
6-
arbiter.h)
5+
arbiter.c)
76

87
add_library(arbiter ${SOURCE})
98
add_dependencies(arbiter bugcodes xdk)
10-
add_pch(arbiter arbiter.h SOURCE)

sdk/lib/drivers/arbiter/arbiter.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88

99
/* INCLUDES *******************************************************************/
1010

11-
#define NDEBUG
12-
#include <debug.h>
11+
#include <ntifs.h>
12+
#include <ndk/rtltypes.h>
1313

1414
#include "arbiter.h"
1515

16+
#define NDEBUG
17+
#include <debug.h>
18+
1619
/* GLOBALS ********************************************************************/
1720

1821
/* DATA **********************************************************************/

sdk/lib/drivers/arbiter/arbiter.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
#ifndef _ARBITER_H
1010
#define _ARBITER_H
1111

12-
#ifndef _NTOSKRNL_
13-
#include <ntifs.h>
14-
#include <ndk/rtlfuncs.h>
15-
#endif
16-
1712
typedef struct _ARBITER_ORDERING
1813
{
1914
ULONGLONG Start;

0 commit comments

Comments
 (0)