Skip to content

Commit 06d0baf

Browse files
committed
Fix #2: Unittest build failure after 7c7c01c
1 parent 606b152 commit 06d0baf

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

include/cm/cm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <types.h>
1212
#include <stdarg.h>
13-
#ifdef KERNEL
13+
#if defined(KERNEL) || defined (UNITTEST)
1414
#include <cm/osif.h>
1515
#include <cm/syscall.h>
1616
#else

include/cm/err.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
#include <stdint.h>
8-
#ifdef KERNEL
8+
#if defined(KERNEL) || defined (UNITTEST)
99
#include <cm/debug.h>
1010
#include <cm/syscall.h>
1111
#include <cm/osif.h>

include/cm/graphics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#pragma once
88

99
#include <types.h>
10-
#ifdef KERNEL
10+
#if defined(KERNEL) || defined (UNITTEST)
1111
#include <cm/osif.h>
1212
#else
1313
#include <osif.h>

include/cm/syscall.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77
#pragma once
88

99
#include <types.h>
10-
// App library is built with the with Kernel flags and kernel include directories. Whereas when
11-
// applications will include this header (either directly or indirectly) the include path will
12-
// differ, thus this change in the way applib headers are included here.
13-
#ifdef KERNEL
10+
#if defined(KERNEL) || defined (UNITTEST)
1411
#include <cm/osif.h>
1512
#else
1613
#include <osif.h>

0 commit comments

Comments
 (0)