Skip to content

Commit dfd55bf

Browse files
authored
Add missing stdbool.h include for C compiler (#6)
1 parent 38b77dc commit dfd55bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/nanothread/nanothread.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
#include <stddef.h>
1414
#include <stdio.h>
1515

16+
#if !defined(__cplusplus)
17+
#include <stdbool.h>
18+
#endif
19+
1620
#if defined(_MSC_VER)
1721
# if defined(NANOTHREAD_BUILD)
1822
# define NANOTHREAD_EXPORT __declspec(dllexport)

0 commit comments

Comments
 (0)