Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions include/czmq_prelude.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,15 +530,16 @@ typedef struct {


// Fallback for booleans for pre-C23 C and MSVC builds
#if defined(__STDC_VERSION__) && __STDC_VERSION__ < 202311L
# if (defined (_MSC_VER))
# if (!defined (__cplusplus) && (!defined (true)))
# define true 1
# define false 0
typedef char bool;
# endif
#if !defined(__cplusplus) && !defined(__bool_true_false_are_defined)
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
# include <stdbool.h>
# elif defined(_MSC_VER)
typedef char bool;
# define true 1
# define false 0
# define __bool_true_false_are_defined 1
# else
# include <stdbool.h>
# include <stdbool.h>
# endif
#endif

Expand Down
Loading