Skip to content

Commit 92d0cbe

Browse files
committed
macros: use stdbool for booleans
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 70494d7 commit 92d0cbe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/fluent-bit/flb_macros.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
#ifndef FLB_MACROS_H
2121
#define FLB_MACROS_H
2222

23+
#include <stdbool.h>
2324
#include <monkey/mk_core.h>
2425

25-
#define FLB_FALSE 0
26-
#define FLB_TRUE !FLB_FALSE
26+
#define FLB_FALSE false
27+
#define FLB_TRUE true
2728

2829
/* Return values */
2930
#define FLB_ERROR 0

0 commit comments

Comments
 (0)