Skip to content

Commit

Permalink
c23 has bool
Browse files Browse the repository at this point in the history
  • Loading branch information
andyli committed Jan 31, 2025
1 parent 23012db commit ab37810
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions libs/common/osdef.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@
# define NEKO_LITTLE_ENDIAN
#endif

#ifndef true
# define true 1
# define false 0
typedef int bool;
#if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202000L
# ifndef true
# define true 1
# define false 0
typedef int bool;
# endif
#endif

#endif
Expand Down
10 changes: 6 additions & 4 deletions vm/neko.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,12 @@ typedef struct _mt_lock mt_lock;
#else
# define C_FUNCTION_BEGIN
# define C_FUNCTION_END
# ifndef true
# define true 1
# define false 0
typedef int bool;
# if !defined(__STDC_VERSION__) || __STDC_VERSION__ < 202000L
# ifndef true
# define true 1
# define false 0
typedef int bool;
# endif
# endif
#endif

Expand Down

0 comments on commit ab37810

Please sign in to comment.