Use stdbool macros instead of _Bool
Just to cope with that Visual Studio thing that still doesn't support C99. I hate that because some libraries can redefine "bool" in an incompatible way. It's okay. Until we have that in an exported prototype.
This commit is contained in:
parent
e59ed29ee8
commit
d50249c927
@ -6,6 +6,7 @@
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -38,7 +39,7 @@ typedef struct Salsa20Random_ {
|
||||
HCRYPTPROV hcrypt_prov;
|
||||
#endif
|
||||
int random_data_source_fd;
|
||||
_Bool initialized;
|
||||
bool initialized;
|
||||
} Salsa20Random;
|
||||
|
||||
static Salsa20Random stream = {
|
||||
|
@ -9,6 +9,7 @@
|
||||
#ifndef _WIN32
|
||||
# include <poll.h>
|
||||
#endif
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -26,7 +27,7 @@ typedef struct SysRandom_ {
|
||||
HCRYPTPROV hcrypt_prov;
|
||||
#endif
|
||||
int random_data_source_fd;
|
||||
_Bool initialized;
|
||||
bool initialized;
|
||||
} SysRandom;
|
||||
|
||||
static SysRandom stream = {
|
||||
|
Loading…
Reference in New Issue
Block a user