Skip to content
Merged
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
19 changes: 11 additions & 8 deletions include/czmq_prelude.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,17 +529,20 @@ typedef struct {
// That's it about the randof() macro definition...


// Windows MSVS doesn't have stdbool
#if (defined (_MSC_VER))
# if (!defined (__cplusplus) && (!defined (true)))
# define true 1
# define false 0
typedef char bool;
// 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
# else
# include <stdbool.h>
# endif
#else
# include <stdbool.h>
#endif


//- A number of POSIX and C99 keywords and data types -----------------------
// CZMQ uses uint for array indices; equivalent to unsigned int, but more
// convenient in code. We define it in czmq_prelude.h on systems that do
Expand Down
Loading