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:
Frank Denis 2013-03-31 15:28:15 -07:00
parent e59ed29ee8
commit d50249c927
2 changed files with 4 additions and 2 deletions

View File

@ -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 = {

View File

@ -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 = {