Skip to content

Commit

Permalink
After JEP 347, we can use bool type only "#include <stdbool.h>"
Browse files Browse the repository at this point in the history
  • Loading branch information
sendaoYan committed Sep 9, 2024
1 parent a931938 commit 66da6f7
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,7 @@
* questions.
*/
#include "export.h"
#if (__STDC_VERSION__ >= 199901L)
#include <stdbool.h>
#else
#define bool int
#define true 1
#define false 0
#endif
#include <stdbool.h>
#if defined(__linux__)
#include <linux/fcntl.h>
#include <stdio.h>
Expand Down

0 comments on commit 66da6f7

Please sign in to comment.